dropdown action check
This commit is contained in:
parent
f8d9b9f6c8
commit
f5edd20205
|
@ -174,9 +174,7 @@ export const Dropdown = function({
|
|||
|
||||
dropdownMenuButton.button.addEventListener('click', () => {
|
||||
|
||||
if (item.action()) {
|
||||
item.action();
|
||||
}
|
||||
if (item.action) { item.action(); }
|
||||
|
||||
this.close();
|
||||
|
||||
|
|
Loading…
Reference in New Issue