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,12 +109,15 @@ class EntityFilterBadge extends HTMLElement implements LovelaceBadge {
|
||||
return;
|
||||
}
|
||||
|
||||
// Attach element if it has never been attached.
|
||||
if (!this.lastChild) {
|
||||
let child = this.lastElementChild;
|
||||
while (child) {
|
||||
this.removeChild(child);
|
||||
child = this.lastElementChild;
|
||||
}
|
||||
|
||||
for (const element of this._elements) {
|
||||
this.appendChild(element);
|
||||
}
|
||||
}
|
||||
|
||||
this.style.display = "inline";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user