mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-28 23:59:53 +02:00
rebuild and only select visible dropdown items
This commit is contained in:
2
js/bootstrap-dropdown.js
vendored
2
js/bootstrap-dropdown.js
vendored
@@ -82,7 +82,7 @@
|
||||
|
||||
if (!isActive || (isActive && e.keyCode == 27)) return $this.click()
|
||||
|
||||
$items = $('[role=menu] li:not(.divider) a', $parent)
|
||||
$items = $('[role=menu] li:not(.divider):visible a', $parent)
|
||||
|
||||
if (!$items.length) return
|
||||
|
||||
|
Reference in New Issue
Block a user