From aaeff27ba6424835aeba08cfb0c56906f69bd60f Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 25 Dec 2023 12:56:52 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9888 --- app/src/protyle/render/av/col.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/src/protyle/render/av/col.ts b/app/src/protyle/render/av/col.ts index cef1f21a1..3ff9afd78 100644 --- a/app/src/protyle/render/av/col.ts +++ b/app/src/protyle/render/av/col.ts @@ -219,9 +219,6 @@ export const bindEditEvent = (options: { const colData = options.data.view.columns.find((item: IAVColumn) => item.id === colId); const nameElement = options.menuElement.querySelector('[data-type="name"]') as HTMLInputElement; nameElement.addEventListener("blur", () => { - if (colData.type === "relation") { - return; - } const newValue = nameElement.value; if (newValue === colData.name) { return; @@ -470,9 +467,6 @@ export const showColMenu = (protyle: IProtyle, blockElement: Element, cellElemen const avID = blockElement.getAttribute("data-av-id"); const oldValue = cellElement.querySelector(".av__celltext").textContent.trim(); const menu = new Menu("av-header-cell", () => { - if (type === "relation") { - return; - } const newValue = (window.siyuan.menus.menu.element.querySelector(".b3-text-field") as HTMLInputElement).value; if (newValue === oldValue) { return;