mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Dropdown perf - on keyboard nav, find active item in the active dropdown rather than the whole document (#19953)
This commit is contained in:
parent
308bc77dbb
commit
3606c5b9c5
@ -239,11 +239,7 @@ const Dropdown = (($) => {
|
||||
return
|
||||
}
|
||||
|
||||
let items = $.makeArray($(Selector.VISIBLE_ITEMS))
|
||||
|
||||
items = items.filter((item) => {
|
||||
return item.offsetWidth || item.offsetHeight
|
||||
})
|
||||
let items = $(parent).find(Selector.VISIBLE_ITEMS).get()
|
||||
|
||||
if (!items.length) {
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user