Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/10964

Vanessaccbcb4b80952
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index a415e1ef71..9fd489e130 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 31ed963f38..928f469a3d 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;
}