diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-07-22 17:17:10 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-07-26 10:22:05 +0200 |
commit | 86fcf916334545aeb28f76ef98034df5111e8163 (patch) | |
tree | fdbdfc855e1a2914870cf2f6f6ff7e3dfcdaf220 /modules/luci-base/htdocs/luci-static | |
parent | fd35e9a226965c1586228618d34597da0be48877 (diff) |
luci-base: ui.js: fix event binding for UISelect
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/ui.js | 4 |
1 files changed, 2 insertions, 2 deletions
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"]'); |