Skip to content

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

:bug: Hide table cell menu inside custom Protyle elements https://github.com/siyuan-note/siyuan/issues/18913

Danielc537cf36b2d1
diff --git a/app/src/protyle/util/tableControl.ts b/app/src/protyle/util/tableControl.ts
index 7acc0a75c5..2f010a7880 100644
--- a/app/src/protyle/util/tableControl.ts
+++ b/app/src/protyle/util/tableControl.ts
@@ -1302,7 +1302,7 @@ export class TableControl {
rowControlCenter);
}
}
- if (!this.dragState && !this.selection && caretCell) {
+ if (!this.dragState && !this.selection && caretCell && getTableNode(caretCell) && !this.protyle.disabled) {
const table = caretCell.closest("table") as HTMLTableElement;
const viewportRect = table ? this.getTableGridViewportRect(table) : undefined;
if (viewportRect) {