mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-06-20 20:00:36 +03:00
Dropdown: Remove redundant check since the show method already does it
This commit is contained in:
+1
-4
@@ -437,10 +437,7 @@ class Dropdown extends BaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (event.key === ARROW_UP_KEY || event.key === ARROW_DOWN_KEY) {
|
if (event.key === ARROW_UP_KEY || event.key === ARROW_DOWN_KEY) {
|
||||||
if (!isActive) {
|
instance.show()
|
||||||
instance.show()
|
|
||||||
}
|
|
||||||
|
|
||||||
instance._selectMenuItem(event)
|
instance._selectMenuItem(event)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user