dropdown: close when receiving a value

This commit is contained in:
bordun 2020-03-23 11:00:06 +01:00
parent 500fbe384c
commit 589625b9fe

View file

@ -93,6 +93,12 @@ class Dropdown extends Widget {
if (!options.fromLocal) this.select.selectedIndex = i + 1
if (document.activeElement === this.select) {
// force menu close
this.select.blur()
this.select.focus()
}
if (options.send) this.sendValue()
if (options.sync) this.changed(options)