diff options
| author | Jeremy Jackson <[email protected]> | 2019-10-17 15:01:44 +0000 |
|---|---|---|
| committer | XhmikosR <[email protected]> | 2019-10-17 18:01:44 +0300 |
| commit | c1ee395f80c05de8317588b07f34a65c5b95c42c (patch) | |
| tree | 56d88e6e3e4256ceeea5766af744679e763eb904 /js/src/dropdown.js | |
| parent | 104385c508a4c77761b04a9842e978bab6f359f6 (diff) | |
| download | bootstrap-c1ee395f80c05de8317588b07f34a65c5b95c42c.tar.xz bootstrap-c1ee395f80c05de8317588b07f34a65c5b95c42c.zip | |
Skip hidden dropdowns while focusing (#29523)
Diffstat (limited to 'js/src/dropdown.js')
| -rw-r--r-- | js/src/dropdown.js | 2 |
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 |
