From 87f7981144da9e4bc9c9db6b70475af123478550 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Wed, 1 Dec 2021 13:55:01 +0100 Subject: [PATCH] Fix faded element in change log (#10737) --- src/components/ha-faded.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/ha-faded.ts b/src/components/ha-faded.ts index 974956dcfd..8f53e1cb6c 100644 --- a/src/components/ha-faded.ts +++ b/src/components/ha-faded.ts @@ -42,9 +42,7 @@ class HaFaded extends LitElement { private _setShowContent() { const height = this._slottedHeight; - if (height !== 0 && height <= this.fadedHeight + 50) { - this._contentShown = true; - } + this._contentShown = height !== 0 && height <= this.fadedHeight + 50; } protected firstUpdated(changedProps) {