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
path: root/js
diff options
context:
space:
mode:
authorGeoSot <geo.sotis@gmail.com>2021-10-10 15:39:47 +0300
committerXhmikosR <xhmikosr@gmail.com>2021-12-01 18:10:39 +0300
commitbff95d55af1074d67738c5f83d69f7b8cff5a22a (patch)
tree3cc507781072370ed000ac62bf3d96a0ed84f369 /js
parent2d32802f53660b0146e0f78d1c8cd1fb58c0233e (diff)
Dropdown: Remove redundant check since the `show` method already does it
Diffstat (limited to 'js')
-rw-r--r--js/src/dropdown.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 2376e74cdd..6c613efc6b 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -437,10 +437,7 @@ class Dropdown extends BaseComponent {
}
if (event.key === ARROW_UP_KEY || event.key === ARROW_DOWN_KEY) {
- if (!isActive) {
- instance.show()
- }
-
+ instance.show()
instance._selectMenuItem(event)
return
}