Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2020-09-18 10:22:24 +0300
committerGitHub <noreply@github.com>2020-09-18 10:22:24 +0300
commitdc2f1e68cd3214047ec7b88cf060daf7152ee408 (patch)
tree07bb4d4a4d2f1f65845e4c5e12c2998908dfc4d7
parent1bd1d78a783f3bc5ea51df106317cd78c818d29e (diff)
Dropdown: fix variable always evaluating to true (#31673)
-rw-r--r--js/src/dropdown.js2
1 files changed, 1 insertions, 1 deletions
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')
}