mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-20 14:04:06 +01:00
This commit is contained in:
parent
0fcd53187d
commit
7a3c8da349
3 changed files with 15 additions and 29 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue