Dropdown: fix variable always evaluating to true (#31673)
This commit is contained in:
parent
1bd1d78a78
commit
dc2f1e68cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue