diff --git a/app/assets/javascripts/discourse/app/components/topic-progress.js b/app/assets/javascripts/discourse/app/components/topic-progress.js index bf772e19324..41ff05f96bf 100644 --- a/app/assets/javascripts/discourse/app/components/topic-progress.js +++ b/app/assets/javascripts/discourse/app/components/topic-progress.js @@ -155,6 +155,10 @@ export default Component.extend({ @bind _intersectionHandler(entries) { + if (!this.element || this.isDestroying || this.isDestroyed) { + return; + } + if (entries[0].isIntersecting === true) { this.set("docked", true); } else {