Skip to content

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

:bug: Keep database multi-selection toolbar actions clickable https://github.com/siyuan-note/siyuan/issues/11742

Daniele639f3b987cf
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.ts
index 85c775a5ea..f99d83a94c 100644
--- a/app/src/protyle/wysiwyg/index.ts
+++ b/app/src/protyle/wysiwyg/index.ts
@@ -763,6 +763,11 @@ export class WYSIWYG {
documentSelf.onmouseup = null;
let target = event.target as HTMLElement;
let nodeElement = hasClosestBlock(target) as HTMLElement;
+ if (hasClosestByClassName(target, "av__selection-toolbar")) {
+ event.preventDefault();
+ event.stopPropagation();
+ return;
+ }
const hasSelectClassElement = this.element.querySelector(".protyle-wysiwyg--select");
const galleryItemElement = hasClosestByClassName(target, "av__gallery-item");
const avCellElement = hasClosestByClassName(target, "av__cell") as HTMLElement;