Fix faded element in change log (#10737)

This commit is contained in:
Joakim Sørensen 2021-12-01 13:55:01 +01:00 committed by GitHub
parent ceac9834b9
commit 87f7981144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {