luci-base: ui.js: fix UITextfield.setValue()
Fixes: d02c26772
("luci-base: ui.js: rework password input handling")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
28cf5cd576
commit
915e446c07
1 changed files with 1 additions and 1 deletions
|
@ -368,7 +368,7 @@ var UITextfield = UIElement.extend(/** @lends LuCI.ui.Textfield.prototype */ {
|
|||
|
||||
/** @override */
|
||||
setValue: function(value) {
|
||||
var inputEl = this.node.childNodes[+!!this.options.password];
|
||||
var inputEl = this.node.querySelector('input');
|
||||
inputEl.value = value;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue