File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/luci-base/htdocs/luci-static/resources Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ const UITextfield = UIElement.extend(/** @lends LuCI.ui.Textfield.prototype */ {
371371 'id' : this . options . id ? `widget.${ this . options . id } ` : null ,
372372 'name' : this . options . name ,
373373 'type' : 'text' ,
374- 'class' : `password-input ${ this . options . password ? 'cbi-input-password' : 'cbi-input-text' } ` ,
374+ 'class' : this . options . password ? 'cbi-input-password' : 'cbi-input-text' ,
375375 'readonly' : this . options . readonly ? '' : null ,
376376 'disabled' : this . options . disabled ? '' : null ,
377377 'maxlength' : this . options . maxlength ,
@@ -390,7 +390,7 @@ const UITextfield = UIElement.extend(/** @lends LuCI.ui.Textfield.prototype */ {
390390 // DOM manipulation (e.g. by password managers) may have inserted other
391391 // elements between the reveal button and the input. This searches for
392392 // the first <input> inside the parent of the <button> to use for toggle.
393- const e = this . parentElement . querySelector ( 'input.password -input' )
393+ const e = this . parentElement . querySelector ( 'input.cbi -input-password ' )
394394 if ( e ) {
395395 e . type = ( e . type === 'password' ) ? 'text' : 'password' ;
396396 } else {
You can’t perform that action at this time.
0 commit comments