aboutsummaryrefslogtreecommitdiff
path: root/js/src
diff options
context:
space:
mode:
authorGeoSot <[email protected]>2021-10-10 15:39:47 +0300
committerXhmikosR <[email protected]>2021-12-01 17:10:39 +0200
commitbff95d55af1074d67738c5f83d69f7b8cff5a22a (patch)
tree3cc507781072370ed000ac62bf3d96a0ed84f369 /js/src
parent2d32802f53660b0146e0f78d1c8cd1fb58c0233e (diff)
downloadbootstrap-bff95d55af1074d67738c5f83d69f7b8cff5a22a.tar.xz
bootstrap-bff95d55af1074d67738c5f83d69f7b8cff5a22a.zip
Dropdown: Remove redundant check since the `show` method already does it
Diffstat (limited to 'js/src')
-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 2376e74cd..6c613efc6 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
}