2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03: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
+1
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