mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:10:16 +01:00
This commit is contained in:
parent
3922ca0cd4
commit
8058e906a2
3 changed files with 4 additions and 5 deletions
|
|
@ -228,7 +228,7 @@ export class BlockPanel {
|
|||
this.targetElement = undefined;
|
||||
// 移除弹出上使用右键菜单
|
||||
const menuLevel = parseInt(window.siyuan.menus.menu.element.dataset.from);
|
||||
if (menuLevel && menuLevel >= level && window.siyuan.menus.menu.element.dataset.from.includes("popover")) {
|
||||
if (menuLevel && menuLevel >= level && window.siyuan.menus.menu.element.dataset.from?.includes("popover")) {
|
||||
// https://github.com/siyuan-note/siyuan/issues/9854 右键菜单不是从浮窗中弹出的则不进行移除
|
||||
window.siyuan.menus.menu.remove();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue