From 567a41347e0c0d6e46ca59c93887218dcce50ba7 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Tue, 10 Aug 2021 18:55:18 +0300 Subject: [PATCH] Fix a `unicorn/no-array-callback-reference` issue --- js/src/dropdown.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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