mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 07:16:39 +00:00
Merge pull request #4224 from iantrich/fix-filter-badge
Fix entity-filter-badge update
This commit is contained in:
commit
13c18a9bb7
@ -109,11 +109,12 @@ class EntityFilterBadge extends HTMLElement implements LovelaceBadge {
|
||||
return;
|
||||
}
|
||||
|
||||
// Attach element if it has never been attached.
|
||||
if (!this.lastChild) {
|
||||
for (const element of this._elements) {
|
||||
this.appendChild(element);
|
||||
}
|
||||
while (this.lastChild) {
|
||||
this.removeChild(this.lastChild);
|
||||
}
|
||||
|
||||
for (const element of this._elements) {
|
||||
this.appendChild(element);
|
||||
}
|
||||
|
||||
this.style.display = "inline";
|
||||
|
Loading…
x
Reference in New Issue
Block a user