public
/
clean-css.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f817e03
)
See #906 - handle dropdown events correctly.
author
Jakub Pawlowicz
<contact@jakubpawlowicz.com>
Thu, 4 May 2017 12:41:07 +0000
(14:41 +0200)
committer
Jakub 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
patch
|
blob
|
history
diff --git
a/docs/js/settings.js
b/docs/js/settings.js
index
cb9b6f8
..
deb204f
100644
(file)
--- a/
docs/js/settings.js
+++ b/
docs/js/settings.js
@@
-136,6
+136,7
@@
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)