mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 17:40:13 +01:00
This commit is contained in:
parent
0157b63a0d
commit
d763a9b14b
1 changed files with 6 additions and 3 deletions
|
|
@ -331,11 +331,14 @@ export const openMenuPanel = (options: {
|
||||||
while (target && !target.isSameNode(avPanelElement)) {
|
while (target && !target.isSameNode(avPanelElement)) {
|
||||||
const type = target.dataset.type;
|
const type = target.dataset.type;
|
||||||
if (type === "close") {
|
if (type === "close") {
|
||||||
if (options.protyle.toolbar.subElement.className.includes("fn__none")) {
|
if (!options.protyle.toolbar.subElement.classList.contains("fn__none")) {
|
||||||
avPanelElement.remove();
|
|
||||||
} else {
|
|
||||||
// 优先关闭资源文件搜索
|
// 优先关闭资源文件搜索
|
||||||
hideElements(["util"], options.protyle);
|
hideElements(["util"], options.protyle);
|
||||||
|
} else if (!window.siyuan.menus.menu.element.classList.contains("fn__none")) {
|
||||||
|
// 过滤面板先关闭过滤条件
|
||||||
|
window.siyuan.menus.menu.remove();
|
||||||
|
} else {
|
||||||
|
avPanelElement.remove();
|
||||||
}
|
}
|
||||||
window.siyuan.menus.menu.remove();
|
window.siyuan.menus.menu.remove();
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue