From 79dc0ecf86f9ec6a679c1f976262e0633e4148f7 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Fri, 29 Jan 2021 18:07:31 +0100 Subject: [PATCH] Remove explicit ids, as they are not necessary anymore --- qt/aqt/data/web/js/editor.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/qt/aqt/data/web/js/editor.ts b/qt/aqt/data/web/js/editor.ts index 24ffb13dd..1b172ac05 100644 --- a/qt/aqt/data/web/js/editor.ts +++ b/qt/aqt/data/web/js/editor.ts @@ -430,16 +430,6 @@ class EditingArea extends HTMLElement { this.setAttribute("contenteditable", ""); } - static get observedAttributes(): string[] { - return ['ord']; - } - - attributeChangedCallback(name: string, _oldValue: string, newValue: string): void { - switch (name) { - case "ord": this.id = `editor-field-${newValue}`; - } - } - set fieldHTML(content: string) { this.innerHTML = content; @@ -483,13 +473,6 @@ class EditingContainer extends HTMLDivElement { return ['ord']; } - attributeChangedCallback(name: string, _oldValue: string, newValue: string): void { - switch (name) { - case "ord": - this.id = `f${newValue}`; - } - } - get ord(): number { return Number(this.getAttribute("ord")); }