This commit is contained in:
Vanessa 2023-08-01 14:42:33 +08:00
parent 0fcd53187d
commit 7a3c8da349
3 changed files with 15 additions and 29 deletions

View file

@ -179,7 +179,7 @@ export class MenuItem {
if (this.element.getAttribute("disabled")) {
return;
}
let keepOpen = options.click(this.element);
let keepOpen = options.click(this.element, event);
if (keepOpen instanceof Promise) {
keepOpen = false;
}