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') }