From: Paul Donald Date: Thu, 5 Feb 2026 21:24:27 +0000 (+0100) Subject: luci-base: remove static password-input from UI element X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=83a42aa329b9b707f5d9482e2a92a1c3c70e08e2;p=openwrt-luci.git luci-base: remove static password-input from UI element follow-up to fc8ad20bbb7d7df16aeda37e8c3bf8495bedc6c3 this should be sufficient for password managers to work Signed-off-by: Paul Donald --- diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index b9ccb1e187..45de907504 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -371,7 +371,7 @@ const UITextfield = UIElement.extend(/** @lends LuCI.ui.Textfield.prototype */ { 'id': this.options.id ? `widget.${this.options.id}` : null, 'name': this.options.name, 'type': 'text', - 'class': `password-input ${this.options.password ? 'cbi-input-password' : 'cbi-input-text'}`, + 'class': this.options.password ? 'cbi-input-password' : 'cbi-input-text', 'readonly': this.options.readonly ? '' : null, 'disabled': this.options.disabled ? '' : null, 'maxlength': this.options.maxlength, @@ -390,7 +390,7 @@ const UITextfield = UIElement.extend(/** @lends LuCI.ui.Textfield.prototype */ { // DOM manipulation (e.g. by password managers) may have inserted other // elements between the reveal button and the input. This searches for // the first inside the parent of the