diff options
author | XhmikosR <xhmikosr@gmail.com> | 2020-09-18 10:22:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-18 10:22:24 +0300 |
commit | dc2f1e68cd3214047ec7b88cf060daf7152ee408 (patch) | |
tree | 07bb4d4a4d2f1f65845e4c5e12c2998908dfc4d7 /js/src/dropdown.js | |
parent | 1bd1d78a783f3bc5ea51df106317cd78c818d29e (diff) |
Dropdown: fix variable always evaluating to true (#31673)
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r-- | js/src/dropdown.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 8cfa5564ab..5e3ed4c56e 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -469,7 +469,7 @@ class Dropdown { event.preventDefault() event.stopPropagation() - if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { + if (!isActive || (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { if (event.which === ESCAPE_KEYCODE) { $(parent.querySelector(SELECTOR_DATA_TOGGLE)).trigger('focus') } |