This commit is contained in:
parent
fd17c48e79
commit
aaeff27ba6
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue