mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 08:48:49 +01:00
🎨 浮窗反链点击会消失
This commit is contained in:
parent
124b201fa7
commit
2cac581630
1 changed files with 1 additions and 1 deletions
|
|
@ -825,7 +825,7 @@ export const globalShortcut = () => {
|
|||
}
|
||||
}
|
||||
// dock float 时,点击空白处,隐藏 dock
|
||||
const floatDockLayoutElement = hasClosestByClassName(event.target, "layout--float")
|
||||
const floatDockLayoutElement = hasClosestByClassName(event.target, "layout--float", true);
|
||||
if (floatDockLayoutElement) {
|
||||
if (!floatDockLayoutElement.isSameNode(window.siyuan.layout.topDock.layout.element)) {
|
||||
window.siyuan.layout.topDock.hideDock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue