mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
This commit is contained in:
parent
eb92b9acf4
commit
3ec2ff243f
5 changed files with 49 additions and 25 deletions
|
|
@ -211,11 +211,13 @@ export class BlockPanel {
|
|||
});
|
||||
this.editors = [];
|
||||
}
|
||||
const level = parseInt(this.element.dataset.level);
|
||||
this.element.remove();
|
||||
this.element = undefined;
|
||||
this.targetElement = undefined;
|
||||
// 移除弹出上使用右键菜单
|
||||
if (window.siyuan.menus.menu.element.dataset.from !== "app") {
|
||||
const menuLevel = parseInt(window.siyuan.menus.menu.element.dataset.from)
|
||||
if (window.siyuan.menus.menu.element.dataset.from !== "app" && menuLevel && menuLevel >= level) {
|
||||
// https://github.com/siyuan-note/siyuan/issues/9854 右键菜单不是从浮窗中弹出的则不进行移除
|
||||
window.siyuan.menus.menu.remove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue