Vanessa 2024-04-15 01:28:48 +08:00
parent 02415b8e90
commit 693e89bd7b
4 changed files with 32 additions and 17 deletions

View file

@ -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")) {
// 优先关闭资源文件搜索