twbs/bootstrap

Dropdown's arrow key handler runs global DOM query?

Closed this issue · 1 comments

It seems rather odd that we're selecting all the dropdown items in the entire document in

let items = $.makeArray($(Selector.VISIBLE_ITEMS))

Surely we should be limiting the query to the descendants of the relevant dropdown menu? It seems rather unnecessarily wasteful otherwise.

mdo commented

Merged #19953, so closing.