From: Jo-Philipp Wich Date: Mon, 22 Jul 2019 15:17:10 +0000 (+0200) Subject: luci-base: ui.js: fix event binding for UISelect X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=86fcf916334545aeb28f76ef98034df5111e8163;p=oweals%2Fluci.git luci-base: ui.js: fix event binding for UISelect Signed-off-by: Jo-Philipp Wich --- diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 9c16a9a0d..bff717eb8 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -287,8 +287,8 @@ var UISelect = UIElement.extend({ this.node = frameEl; if (this.options.widget == 'select') { - this.setUpdateEvents(frameEl, 'change', 'click', 'blur'); - this.setChangeEvents(frameEl, 'change'); + this.setUpdateEvents(frameEl.firstChild, 'change', 'click', 'blur'); + this.setChangeEvents(frameEl.firstChild, 'change'); } else { var radioEls = frameEl.querySelectorAll('input[type="radio"]');