mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
02415b8e90
commit
693e89bd7b
4 changed files with 32 additions and 17 deletions
|
|
@ -462,7 +462,7 @@ export const openMenuPanel = (options: {
|
|||
}
|
||||
let target = event.target as HTMLElement;
|
||||
while (target && !target.isSameNode(avPanelElement) || type) {
|
||||
type = target.dataset.type || type;
|
||||
type = target?.dataset.type || type;
|
||||
if (type === "close") {
|
||||
if (!options.protyle.toolbar.subElement.classList.contains("fn__none")) {
|
||||
// 优先关闭资源文件搜索
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue