luci-base: ui.js: fix UISelect.setValue()
Fixes: #2852
Fixes: ce04d7f
("luci-base: fix label-to-input association in js cbi maps")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
parent
4b941bce40
commit
3dcb061dcc
1 changed files with 2 additions and 2 deletions
|
@ -320,8 +320,8 @@ var UISelect = UIElement.extend({
|
|||
if (value == null)
|
||||
value = '';
|
||||
|
||||
for (var i = 0; i < this.node.options.length; i++)
|
||||
this.node.options[i].selected = (this.node.options[i].value == value);
|
||||
for (var i = 0; i < this.node.firstChild.options.length; i++)
|
||||
this.node.firstChild.options[i].selected = (this.node.firstChild.options[i].value == value);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue