diff --git a/src/components/timeline-panel/timeline-panel.vue b/src/components/timeline-panel/timeline-panel.vue index 9c9406e..80ce1cc 100644 --- a/src/components/timeline-panel/timeline-panel.vue +++ b/src/components/timeline-panel/timeline-panel.vue @@ -130,10 +130,11 @@ export default { watch: { activeDocument: { immediate: true, - handler( document?: Document ): void { + handler( activeDocument?: Document ): void { flushTileCache(); - if ( document ) { + if ( activeDocument ) { this.cacheTiles(); + this.$nextTick(() => this.setActiveGroup( 0 )); } } },