From e01f1cfcac25be6149289ec604e95d61528cb595 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Wed, 5 Feb 2020 23:03:16 +0100 Subject: [PATCH] More info scroll fix (#4774) * Fix more info dialog scrolling * Update ha-more-info-dialog.js --- src/dialogs/ha-more-info-dialog.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/dialogs/ha-more-info-dialog.js b/src/dialogs/ha-more-info-dialog.js index 3a34c1cfc9..878f17473d 100644 --- a/src/dialogs/ha-more-info-dialog.js +++ b/src/dialogs/ha-more-info-dialog.js @@ -80,7 +80,7 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) { class="no-padding" hass="[[hass]]" state-obj="[[stateObj]]" - dialog-element="[[_dialogElement]]" + dialog-element="[[_dialogElement()]]" registry-entry="[[_registryInfo]]" large="{{large}}" > @@ -102,7 +102,6 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) { observer: "_largeChanged", }, - _dialogElement: Object, _registryInfo: Object, dataDomain: { @@ -116,9 +115,8 @@ class HaMoreInfoDialog extends DialogMixin(PolymerElement) { return ["_dialogOpenChanged(opened)"]; } - ready() { - super.ready(); - this._dialogElement = this; + _dialogElement() { + return this; } _computeDomain(stateObj) {