Render history after dialog has opened

This commit is contained in:
Paulus Schoutsen 2017-01-30 00:03:05 -08:00
parent 5792c77100
commit b9cf35cced

View File

@ -56,7 +56,7 @@
state-obj="[[stateObj]]"
hass='[[hass]]' in-dialog></state-card-content>
</h2>
<template is='dom-if' if="[[showHistoryComponent]]">
<template is='dom-if' if="[[showHistoryComponent]]" restamp>
<div>
<ha-state-history-data
hass='[[hass]]'
@ -180,7 +180,7 @@ Polymer({
dialogOpenChanged: function (newVal) {
if (newVal) {
this.async(function () { this.delayedDialogOpen = true; }.bind(this), 10);
this.async(function () { this.delayedDialogOpen = true; }.bind(this), 100);
} else if (!newVal && this.stateObj) {
this.fire('hass-more-info', { entityId: null });
this.delayedDialogOpen = false;