From 2246dc5511239d26e029e3daf3e3904d0fe76091 Mon Sep 17 00:00:00 2001 From: "Petter H. Juliussen" Date: Mon, 25 Sep 2023 14:21:44 +0200 Subject: [PATCH] Do not scroll to period on mount when an objective is active --- src/components/GanttChart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/GanttChart.vue b/src/components/GanttChart.vue index 8fac5e003..3c880b793 100644 --- a/src/components/GanttChart.vue +++ b/src/components/GanttChart.vue @@ -262,7 +262,7 @@ export default { loading: { async handler() { - if (!this.loading) { + if (!this.loading && !this.activeObjective) { this.$nextTick(() => { const ref = this.$refs.period || this.$refs.today; ref.scrollIntoView({ inline: 'center', behavior: 'instant' });