mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-22 16:26:09 +01:00
This commit is contained in:
parent
bc5678ab79
commit
0cc3078cf2
1 changed files with 4 additions and 1 deletions
|
|
@ -179,7 +179,10 @@ export class MenuItem {
|
|||
if (this.element.getAttribute("disabled")) {
|
||||
return;
|
||||
}
|
||||
const keepOpen = options.click(this.element);
|
||||
let keepOpen = options.click(this.element);
|
||||
if (keepOpen instanceof Promise) {
|
||||
keepOpen = false;
|
||||
}
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
event.stopPropagation();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue