luci-base: ui.js: fix event binding for UISelect

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-07-22 17:17:10 +02:00
parent fd35e9a226
commit 86fcf91633

View file

@ -287,8 +287,8 @@ var UISelect = UIElement.extend({
this.node = frameEl; this.node = frameEl;
if (this.options.widget == 'select') { if (this.options.widget == 'select') {
this.setUpdateEvents(frameEl, 'change', 'click', 'blur'); this.setUpdateEvents(frameEl.firstChild, 'change', 'click', 'blur');
this.setChangeEvents(frameEl, 'change'); this.setChangeEvents(frameEl.firstChild, 'change');
} }
else { else {
var radioEls = frameEl.querySelectorAll('input[type="radio"]'); var radioEls = frameEl.querySelectorAll('input[type="radio"]');