Skip to content

Commit

Permalink
Dropdown: fix variable always evaluating to true (#31673)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Sep 18, 2020
1 parent 1bd1d78 commit dc2f1e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/dropdown.js
Expand Up @@ -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')
}
Expand Down

0 comments on commit dc2f1e6

Please sign in to comment.