luci-base: ui.js: fix UISelect.getValue()
Fixes: #2852
Fixes: ce04d7f04
("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
9aa507790e
commit
43043a46a3
1 changed files with 1 additions and 1 deletions
|
@ -305,7 +305,7 @@ var UISelect = UIElement.extend({
|
||||||
|
|
||||||
getValue: function() {
|
getValue: function() {
|
||||||
if (this.options.widget == 'select')
|
if (this.options.widget == 'select')
|
||||||
return this.node.value;
|
return this.node.firstChild.value;
|
||||||
|
|
||||||
var radioEls = frameEl.querySelectorAll('input[type="radio"]');
|
var radioEls = frameEl.querySelectorAll('input[type="radio"]');
|
||||||
for (var i = 0; i < radioEls.length; i++)
|
for (var i = 0; i < radioEls.length; i++)
|
||||||
|
|
Loading…
Reference in a new issue