mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
This commit is contained in:
parent
e9b41d881c
commit
a76c29f5c9
1 changed files with 9 additions and 7 deletions
|
|
@ -659,6 +659,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
|
|||
if (operation.action === "foldAttrViewGroup") {
|
||||
Array.from(protyle.wysiwyg.element.querySelectorAll(`.av[data-av-id="${operation.avID}"]`)).forEach((item: HTMLElement) => {
|
||||
const foldElement = item.querySelector(`[data-type="av-group-fold"][data-id="${operation.id}"]`);
|
||||
if (foldElement) {
|
||||
if (operation.data) {
|
||||
foldElement.firstElementChild.classList.remove("av__group-arrow--open");
|
||||
foldElement.parentElement.nextElementSibling.classList.add("fn__none");
|
||||
|
|
@ -667,6 +668,7 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
|
|||
foldElement.parentElement.nextElementSibling.classList.remove("fn__none");
|
||||
}
|
||||
foldElement.removeAttribute("data-folding");
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue