luci-base: standards compliant dropdown fix for mobile keyboards
authorTGSAN <[email protected]>
Sat, 6 Sep 2025 11:55:09 +0000 (19:55 +0800)
committerPaul Donald <[email protected]>
Thu, 18 Sep 2025 12:48:44 +0000 (14:48 +0200)
Signed-off-by: TGSAN <[email protected]>
modules/luci-base/htdocs/luci-static/resources/ui.js

index d58f9519a21dc3815b9e073a76b5cfcd7cdef0b9..b85c0de32997913137a68800456fc412e3ea3ccd 100644 (file)
@@ -1092,6 +1092,7 @@ const UIDropdown = UIElement.extend(/** @lends LuCI.ui.Dropdown.prototype */ {
                                'maxlength': this.options.maxlength,
                                'placeholder': this.options.custom_placeholder ?? this.options.placeholder,
                                'inputmode': 'text',
+                               'enterkeyhint': 'done'
                        });
 
                        if (this.options.datatype || this.options.validate)