1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 12:59:05 +02:00

Dropdowns: Skip .disabled instead of .divider on keydown event

Fixes #15147.
Closes #15520 by merging it.
This commit is contained in:
vsn4ik
2015-01-08 12:03:09 +03:00
committed by Heinrich Fenkart
parent 5debbec59f
commit b395f3526e
2 changed files with 22 additions and 1 deletions

View File

@@ -72,7 +72,7 @@
return $this.trigger('click')
}
var desc = ' li:not(.divider):visible a'
var desc = ' li:not(.disabled):visible a'
var $items = $parent.find('[role="menu"]' + desc + ', [role="listbox"]' + desc)
if (!$items.length) return