Skip to content

Commit

Permalink
dropdown action check
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieFox committed Jun 25, 2024
1 parent f8d9b9f commit f5edd20
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/component/dropdown/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,7 @@ export const Dropdown = function({

dropdownMenuButton.button.addEventListener('click', () => {

if (item.action()) {
item.action();
}
if (item.action) { item.action(); }

this.close();

Expand Down

0 comments on commit f5edd20

Please sign in to comment.