From 43043a46a3be1576bce672d90bcda0be1d6c45a5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 11 Jul 2019 14:39:42 +0200 Subject: [PATCH] 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 --- modules/luci-base/htdocs/luci-static/resources/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 69698de30..4aac8bcfc 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -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++) -- 2.25.1