Remove conditional element from DOM when hidden (#13955)

This commit is contained in:
Rob Jackson 2022-10-26 12:27:56 +01:00 committed by GitHub
parent e0a56956e0
commit 9e955dbaaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}
}