FIX: ensures chart parent element is still present before render (#8145)
This commit is contained in:
parent
29659ef31e
commit
91dd6aacfb
|
@ -33,6 +33,10 @@ export default Ember.Component.extend({
|
|||
|
||||
_scheduleChartRendering() {
|
||||
Ember.run.schedule("afterRender", () => {
|
||||
if (!this.element) {
|
||||
return;
|
||||
}
|
||||
|
||||
this._renderChart(
|
||||
this.model,
|
||||
this.element.querySelector(".chart-canvas")
|
||||
|
|
Loading…
Reference in New Issue