mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 20:00:17 +01:00
This commit is contained in:
parent
4704284ad2
commit
95c64975e8
8 changed files with 115 additions and 28 deletions
|
|
@ -179,11 +179,13 @@ export class MenuItem {
|
|||
if (this.element.getAttribute("disabled")) {
|
||||
return;
|
||||
}
|
||||
options.click(this.element);
|
||||
const result = options.click(this.element);
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
event.stopPropagation();
|
||||
window.siyuan.menus.menu.remove();
|
||||
if (typeof result === "undefined" || !result) {
|
||||
window.siyuan.menus.menu.remove();
|
||||
}
|
||||
});
|
||||
}
|
||||
if (options.id) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue