From 49fa7ec4eded9fcac12ac99971ff52db679ffd24 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 13 Jun 2023 12:20:02 +0200 Subject: [PATCH] Clear more info content when switching entity (#16846) --- src/dialogs/more-info/more-info-content.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/dialogs/more-info/more-info-content.ts b/src/dialogs/more-info/more-info-content.ts index ead8379b1e..3783851c91 100644 --- a/src/dialogs/more-info/more-info-content.ts +++ b/src/dialogs/more-info/more-info-content.ts @@ -55,6 +55,9 @@ class MoreInfoContent extends ReactiveElement { } if (!moreInfoType) { + if (this.lastChild) { + this.removeChild(this.lastChild); + } return; }