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

Vanessacc867ea27dc2
diff --git a/app/src/protyle/render/av/cell.ts b/app/src/protyle/render/av/cell.ts
index 6781f4faab..c4f0704645 100644
--- a/app/src/protyle/render/av/cell.ts
+++ b/app/src/protyle/render/av/cell.ts
@@ -16,6 +16,7 @@ export const popTextCell = (protyle: IProtyle, cellElement: HTMLElement) => {
openMenuPanel(protyle, blockElement, "select", {cellElement});
return;
}
+ window.siyuan.menus.menu.remove();
document.body.insertAdjacentHTML("beforeend", `<div class="av__mask">
${html}
</div>`);
diff --git a/app/src/protyle/render/av/openMenuPanel.ts b/app/src/protyle/render/av/openMenuPanel.ts
index 8a37888094..ff610df182 100644
--- a/app/src/protyle/render/av/openMenuPanel.ts
+++ b/app/src/protyle/render/av/openMenuPanel.ts
@@ -101,12 +101,12 @@ export const openMenuPanel = (protyle: IProtyle,
transaction(protyle, [{
action: "updateAttrViewColOptions",
id: options.cellElement.dataset.colId,
- parentID: data.id,
+ avID: data.id,
data: changeData,
}], [{
action: "updateAttrViewColOptions",
id: options.cellElement.dataset.colId,
- parentID: data.id,
+ avID: data.id,
data: oldData,
}]);
menuElement.innerHTML = getSelectHTML(data.view, options);
diff --git a/app/src/protyle/render/av/select.ts b/app/src/protyle/render/av/select.ts
index 2f01cca44e..62dc28f736 100644
--- a/app/src/protyle/render/av/select.ts
+++ b/app/src/protyle/render/av/select.ts
@@ -192,7 +192,7 @@ export const setSelectCol = (protyle: IProtyle, data: IAVTable, options: {
}], [{
action: "updateAttrViewColOptions",
id: colId,
- parentID: data.id,
+ avID: data.id,
data: colOptions
}]);
colOptions.find((item, index) => {
@@ -411,7 +411,7 @@ export const addSelectColAndCell = (protyle: IProtyle, data: IAVTable, options:
transaction(protyle, [{
action: "updateAttrViewColOptions",
id: colId,
- parentID: data.id,
+ avID: data.id,
data: colData.options
}, {
action: "updateAttrViewCell",