Skip to content

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

:bug: Clear database selection when clicking the title

Danielcdf5cc0e5862
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index db0283f691..a6ea6d0641 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -272,6 +272,9 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle
if (!blockElement) {
return false;
}
+ if (hasClosestByClassName(event.target, "av__title")) {
+ clearSelect(["av"], blockElement);
+ }
const viewType = blockElement.getAttribute("data-av-type") as TAVView;
let target = event.target;