From ccbcb4b809523c199b0a4838df879b5800196753 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sun, 27 Jul 2025 11:38:58 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/10964 --- app/src/protyle/render/av/action.ts | 4 ++-- app/src/protyle/render/av/render.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index a415e1ef7..9fd489e13 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -295,8 +295,8 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle event.stopPropagation(); return true; } else if (type === "av-group-fold") { - if (target.getAttribute("disabled") !== "true") { - target.setAttribute("disabled", "true"); + if (target.getAttribute("data-folding") !== "true") { + target.setAttribute("data-folding", "true"); const isOpen = target.firstElementChild.classList.contains("av__group-arrow--open"); transaction(protyle, [{ action: "foldAttrViewGroup", diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts index 31ed963f3..928f469a3 100644 --- a/app/src/protyle/render/av/render.ts +++ b/app/src/protyle/render/av/render.ts @@ -615,7 +615,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => { foldElement.firstElementChild.classList.add("av__group-arrow--open"); foldElement.parentElement.nextElementSibling.classList.remove("fn__none"); } - foldElement.removeAttribute("disabled"); + foldElement.removeAttribute("data-folding"); }); return; }