From 4820ebd76cb504ba2b9d016161c455fd0accbeee Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 1 Dec 2016 14:08:00 -0500 Subject: [PATCH] FIX: Don't modify properties in `didInsertElement` --- .../javascripts/discourse/components/topic-progress.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/components/topic-progress.js.es6 b/app/assets/javascripts/discourse/components/topic-progress.js.es6 index 768ad10356b..85cb5209552 100644 --- a/app/assets/javascripts/discourse/components/topic-progress.js.es6 +++ b/app/assets/javascripts/discourse/components/topic-progress.js.es6 @@ -65,7 +65,7 @@ export default Ember.Component.extend({ const prevEvent = this.get('prevEvent'); if (prevEvent) { - this._topicScrolled(prevEvent); + Ember.run.scheduleOnce('afterRender', this, this._topicScrolled, prevEvent); } else { Ember.run.scheduleOnce('afterRender', this, this._updateProgressBar); }