luci-base: allow submitting new value in android chromium
authorRamon Van Gorkom <[email protected]>
Fri, 25 Jul 2025 19:32:52 +0000 (21:32 +0200)
committerPaul Donald <[email protected]>
Mon, 28 Jul 2025 20:30:58 +0000 (22:30 +0200)
Update ui.js to allow submitting from dropdown on android chromium.

Signed-off-by: Ramon Van Gorkom <[email protected]>
modules/luci-base/htdocs/luci-static/resources/ui.js

index d78fd39f7b858c2dad32345f28aa337562c2a13a..1c287aeeb8cb7f05abe34837b7ebe554e96db7d4 100644 (file)
@@ -1090,7 +1090,8 @@ const UIDropdown = UIElement.extend(/** @lends LuCI.ui.Dropdown.prototype */ {
                                'class': 'create-item-input',
                                'readonly': this.options.readonly ? '' : null,
                                'maxlength': this.options.maxlength,
-                               'placeholder': this.options.custom_placeholder ?? this.options.placeholder
+                               'placeholder': this.options.custom_placeholder ?? this.options.placeholder,
+                               'inputmode': 'text',
                        });
 
                        if (this.options.datatype || this.options.validate)