luci-base: ui.js: fix UISelect.getValue()
authorJo-Philipp Wich <jo@mein.io>
Thu, 11 Jul 2019 12:39:42 +0000 (14:39 +0200)
committerJo-Philipp Wich <jo@mein.io>
Thu, 11 Jul 2019 12:40:51 +0000 (14:40 +0200)
Fixes: #2852
Fixes: ce04d7f04 ("luci-base: fix label-to-input association in js cbi maps")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js

index 69698de308858906ef4fe844057e0de815b934cc..4aac8bcfcf21c31edb3e6dd923ccf24267e2dee1 100644 (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++)