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();