Skip to content

Commit dc2f1e6

Browse files
authored
Dropdown: fix variable always evaluating to true (#31673)
1 parent 1bd1d78 commit dc2f1e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/dropdown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ class Dropdown {
469469
event.preventDefault()
470470
event.stopPropagation()
471471

472-
if (!isActive || isActive && (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
472+
if (!isActive || (event.which === ESCAPE_KEYCODE || event.which === SPACE_KEYCODE)) {
473473
if (event.which === ESCAPE_KEYCODE) {
474474
$(parent.querySelector(SELECTOR_DATA_TOGGLE)).trigger('focus')
475475
}

0 commit comments

Comments
 (0)