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/15525

Vanessa2d774f1cef05
diff --git a/app/src/protyle/render/av/render.ts b/app/src/protyle/render/av/render.ts
index 65b3f7568a..0723769846 100644
--- a/app/src/protyle/render/av/render.ts
+++ b/app/src/protyle/render/av/render.ts
@@ -17,6 +17,7 @@ import {renderGallery} from "./gallery/render";
import {getFieldsByData, getViewIcon} from "./view";
import {openMenuPanel} from "./openMenuPanel";
import {getPageSize} from "./groups";
+import {clearSelect} from "../../util/clearSelect";
interface ITableOptions {
protyle: IProtyle,
@@ -679,7 +680,9 @@ export const refreshAV = (protyle: IProtyle, operation: IOperation) => {
const avID = operation.action === "setAttrViewName" ? operation.id : operation.avID;
Array.from(protyle.wysiwyg.element.querySelectorAll(`.av[data-av-id="${avID}"]`)).forEach((item: HTMLElement) => {
item.removeAttribute("data-render");
- if (operation.action === "sortAttrViewCol" || operation.action === "sortAttrViewRow") {
+ if (operation.action === "sortAttrViewRow") {
+ clearSelect(["cell"], item);
+ } else if (operation.action === "sortAttrViewCol") {
item.querySelectorAll(".av__cell--active").forEach((item: HTMLElement) => {
item.classList.remove("av__cell--active");
item.querySelector(".av__drag-fill")?.remove();