diff --git a/entry_types/scrolled/package/src/editor/views/SectionItemView.js b/entry_types/scrolled/package/src/editor/views/SectionItemView.js index ca63f74f7..e16bbe1e4 100644 --- a/entry_types/scrolled/package/src/editor/views/SectionItemView.js +++ b/entry_types/scrolled/package/src/editor/views/SectionItemView.js @@ -51,13 +51,15 @@ export const SectionItemView = Marionette.ItemView.extend({ this.$el[0].scrollIntoView({ block: 'nearest', behavior: 'smooth' - }); } }); }, onRender() { - this.updateActive(); + if (this.updateActive()) { + setTimeout(() => this.$el[0].scrollIntoView({block: 'nearest'}), 10) + } + this.$el.toggleClass(styles.invert, !!this.model.configuration.get('invert')); this.subview(new SectionThumbnailView({