dropdown: remove jquery remain that prevents showing no value selected

This commit is contained in:
jean-emmanuel 2018-02-02 21:08:33 +01:00
parent 4f1728b941
commit a45fde2104

View file

@ -75,7 +75,7 @@ module.exports = class Dropdown extends _widgets_base {
this.container.classList.remove('noselect')
} else {
this.value = undefined
this.select[0].selectedIndex = -1
this.select.selectedIndex = -1
if (options.sync) this.changed(options)
this.container.classList.add('noselect')
}