diff --git a/js/src/dropdown.js b/js/src/dropdown.js index 59809cf5d2..32b587bf1a 100644 --- a/js/src/dropdown.js +++ b/js/src/dropdown.js @@ -342,7 +342,7 @@ class Dropdown extends BaseComponent { } _selectMenuItem({ key, target }) { - const items = SelectorEngine.find(SELECTOR_VISIBLE_ITEMS, this._menu).filter(isVisible) + const items = SelectorEngine.find(SELECTOR_VISIBLE_ITEMS, this._menu).filter(el => isVisible(el)) if (!items.length) { return