Remove explicit ids, as they are not necessary anymore
This commit is contained in:
parent
5e67e706fb
commit
79dc0ecf86
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user