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