]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Dropdown: Remove redundant check since the `show` method already does it
authorGeoSot <geo.sotis@gmail.com>
Sun, 10 Oct 2021 12:39:47 +0000 (15:39 +0300)
committerXhmikosR <xhmikosr@gmail.com>
Wed, 1 Dec 2021 15:10:39 +0000 (17:10 +0200)
js/src/dropdown.js

index 2376e74cddd6104d41eff4e23fb6524812a42cf9..6c613efc6bd093e0af6a90f389b3a4f0db93252e 100644 (file)
@@ -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
     }