mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 16:26:43 +00:00
Fix entity-filter-badge update
This commit is contained in:
parent
1c614c855f
commit
89f33a1730
@ -109,11 +109,14 @@ class EntityFilterBadge extends HTMLElement implements LovelaceBadge {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Attach element if it has never been attached.
|
let child = this.lastElementChild;
|
||||||
if (!this.lastChild) {
|
while (child) {
|
||||||
for (const element of this._elements) {
|
this.removeChild(child);
|
||||||
this.appendChild(element);
|
child = this.lastElementChild;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (const element of this._elements) {
|
||||||
|
this.appendChild(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.style.display = "inline";
|
this.style.display = "inline";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user