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:
Jo-Philipp Wich 2019-07-11 14:39:42 +02:00
parent 9aa507790e
commit 43043a46a3

View file

@ -305,7 +305,7 @@ var UISelect = UIElement.extend({
getValue: function() {
if (this.options.widget == 'select')
return this.node.value;
return this.node.firstChild.value;
var radioEls = frameEl.querySelectorAll('input[type="radio"]');
for (var i = 0; i < radioEls.length; i++)