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]>
Tue, 7 Oct 2025 16:13:11 +0000 (18:13 +0200)
Signed-off-by: TGSAN <[email protected]>
(cherry picked from commit 77e01d3d8cf9d2cf66368f4dd02ab691d67654ba)

modules/luci-base/htdocs/luci-static/resources/ui.js

index 7e5bf8a4a2e1d384db5a8a7641684cd92c262661..f9970931971e8309c27c41625c26163b8aeeb518 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)