luci-base: ui.js: fix event binding for UISelect
authorJo-Philipp Wich <jo@mein.io>
Mon, 22 Jul 2019 15:17:10 +0000 (17:17 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 26 Jul 2019 08:22:05 +0000 (10:22 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js

index 9c16a9a0dd6646b17187365a7d3749ba0d781138..bff717eb8ebfdc3767520112b509eabbef78c1db 100644 (file)
@@ -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"]');