From f5edd202054397a1083408388f9e1d94c72b6de9 Mon Sep 17 00:00:00 2001 From: zombieFox Date: Tue, 25 Jun 2024 17:48:27 +0100 Subject: [PATCH] dropdown action check --- src/component/dropdown/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/component/dropdown/index.js b/src/component/dropdown/index.js index 3b7658d4..fdbe1256 100644 --- a/src/component/dropdown/index.js +++ b/src/component/dropdown/index.js @@ -174,9 +174,7 @@ export const Dropdown = function({ dropdownMenuButton.button.addEventListener('click', () => { - if (item.action()) { - item.action(); - } + if (item.action) { item.action(); } this.close();