1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-27 05:49:07 +02:00

backport #29523: skip hidden dropdowns while focusing

This commit is contained in:
Johann-S
2019-10-28 13:34:11 +01:00
committed by XhmikosR
parent f55566e36b
commit 29f585365f
2 changed files with 42 additions and 0 deletions

View File

@@ -488,6 +488,7 @@ class Dropdown {
}
const items = [].slice.call(parent.querySelectorAll(Selector.VISIBLE_ITEMS))
.filter((item) => $(item).is(':visible'))
if (items.length === 0) {
return