mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
This commit is contained in:
parent
7308536ded
commit
ccbcb4b809
2 changed files with 3 additions and 3 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue