Skip to content

Commit

Permalink
Do not scroll to period on mount when an objective is active
Browse files Browse the repository at this point in the history
  • Loading branch information
petterhj committed Sep 25, 2023
1 parent 9c16562 commit 2246dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/GanttChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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' });
Expand Down

0 comments on commit 2246dc5

Please sign in to comment.