diff options
Diffstat (limited to 'js/dist/dropdown.js')
-rw-r--r-- | js/dist/dropdown.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/dist/dropdown.js b/js/dist/dropdown.js index 1f0ef6873c..b0a7ea493d 100644 --- a/js/dist/dropdown.js +++ b/js/dist/dropdown.js @@ -502,7 +502,7 @@ var isActive = $(parent).hasClass(ClassName.SHOW); - if (!isActive && (event.which !== ESCAPE_KEYCODE || event.which !== SPACE_KEYCODE) || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { + if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) { if (event.which === ESCAPE_KEYCODE) { var toggle = parent.querySelector(Selector.DATA_TOGGLE); $(toggle).trigger('focus'); |