Skip to content

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

:bug: fix https://github.com/siyuan-note/siyuan/issues/9995

Vanessa01990007d798
diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts
index 6a59fe0200..5035f17c1a 100644
--- a/app/src/protyle/render/av/col.ts
+++ b/app/src/protyle/render/av/col.ts
@@ -184,7 +184,7 @@ export const getEditHTML = (options: {
</button>
</div>
<div class="b3-menu__items fn__none">
- <button class="b3-menu__item" data-type="nobg" data-col-id="${options.colId}">
+ <button class="b3-menu__item" data-type="nobg" data-col-id="${colData.id}">
<span class="block__icon" style="padding: 8px;margin-left: -4px;" data-type="goEditCol">
<svg><use xlink:href="#iconLeft"></use></svg>
</span>
@@ -422,7 +422,7 @@ export const getColIconByType = (type: TAVCol) => {
}
};
-export const addAttrViewColAnimation = (options: {
+const addAttrViewColAnimation = (options: {
blockElement: Element,
protyle: IProtyle,
type: TAVCol,
@@ -456,9 +456,6 @@ export const addAttrViewColAnimation = (options: {
previousElement.insertAdjacentHTML("afterend", html);
});
window.siyuan.menus.menu.remove();
- if (options.type !== "relation") {
- showColMenu(options.protyle, options.blockElement, options.blockElement.querySelector(`.av__row--header .av__cell[data-col-id="${options.id}"]`));
- }
};
export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElement: HTMLElement) => {