See #906 - handle dropdown events correctly.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Thu, 4 May 2017 12:41:07 +0000 (14:41 +0200)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 6 May 2017 09:16:36 +0000 (11:16 +0200)
Why:

* `change` event needs to be handled as handling `click` when it comes
  to dropdowns is not enough.

docs/js/settings.js

index cb9b6f8..deb204f 100644 (file)
 
     settingsForm.addEventListener('click', show(settingsForm), false)
     settingsForm.addEventListener('click', setOptionsFrom(settingsForm), false)
+    settingsForm.addEventListener('change', setOptionsFrom(settingsForm), false)
     settingsForm.addEventListener('blur', setOptionsFrom(settingsForm), false)
     settingsForm.addEventListener('reset', resetSettings(settingsForm), false)
     level1Checkbox.addEventListener('click', toggleOptions(level1Checkbox), false)