An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Avoid errors when Shift-clicking database rows https://github.com/siyuan-note/siyuan/issues/18623
Daniel22b3064cda47
diff --git a/app/src/protyle/wysiwyg/index.ts b/app/src/protyle/wysiwyg/index.tsindex 33a5d9fa43..e12d582d99 100644--- a/app/src/protyle/wysiwyg/index.ts+++ b/app/src/protyle/wysiwyg/index.ts@@ -1064,7 +1064,7 @@ export class WYSIWYG {}const hasSelectClassElement = this.element.querySelector(".protyle-wysiwyg--select");const galleryItemElement = hasClosestByClassName(target, "av__gallery-item");- const avCellElement = hasClosestByClassName(target, "av__cell") as HTMLElement;+ const avCellElement = hasClosestByClassName(target, "av__cell");const wysiwygRect = protyle.wysiwyg.element.getBoundingClientRect();const wysiwygStyle = window.getComputedStyle(protyle.wysiwyg.element);const mostLeft = wysiwygRect.left + (parseInt(wysiwygStyle.paddingLeft) || 24) + 1;@@ -1082,7 +1082,7 @@ export class WYSIWYG {getSelection().getRangeAt(0).cloneRange() : undefined;if (event.shiftKey) {if (!isMobile() && !protyle.disabled && nodeElement?.dataset.avType === "table" &&- avCellElement?.dataset.id &&+ avCellElement && avCellElement.dataset.id &&selectAVCellRange(nodeElement, avCellElement)) {focusBlock(nodeElement);this.preventClick = true;