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:
Jo-Philipp Wich 2020-05-04 21:31:38 +02:00
parent 28cf5cd576
commit 915e446c07

View file

@ -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;
}
});