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.