aboutsummaryrefslogtreecommitdiff
path: root/js/src/dropdown.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/dropdown.js')
-rw-r--r--js/src/dropdown.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/src/dropdown.js b/js/src/dropdown.js
index 06a271ef8..4504d61e0 100644
--- a/js/src/dropdown.js
+++ b/js/src/dropdown.js
@@ -9,6 +9,7 @@ import {
getjQuery,
getElementFromSelector,
isElement,
+ isVisible,
makeArray,
noop,
typeCheckConfig
@@ -478,6 +479,7 @@ class Dropdown {
}
const items = makeArray(SelectorEngine.find(Selector.VISIBLE_ITEMS, parent))
+ .filter(isVisible)
if (!items.length) {
return