mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-24 09:46:36 +00:00
Remove conditional element from DOM when hidden (#13955)
This commit is contained in:
parent
e0a56956e0
commit
9e955dbaaa
@ -66,6 +66,8 @@ export class HuiConditionalBase extends ReactiveElement {
|
||||
if (!this._element.parentElement) {
|
||||
this.appendChild(this._element);
|
||||
}
|
||||
} else if (this._element.parentElement) {
|
||||
this.removeChild(this._element);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user