diff --git a/terminus-core/src/components/baseTab.component.ts b/terminus-core/src/components/baseTab.component.ts index 982e88a1..8b4eb942 100644 --- a/terminus-core/src/components/baseTab.component.ts +++ b/terminus-core/src/components/baseTab.component.ts @@ -147,13 +147,15 @@ export abstract class BaseTabComponent { /** * Called before the tab is closed */ - destroy (): void { + destroy (skipDestroyedEvent = false): void { this.focused.complete() this.blurred.complete() this.titleChange.complete() this.progress.complete() this.recoveryStateChangedHint.complete() - this.destroyed.next() + if (!skipDestroyedEvent) { + this.destroyed.next() + } this.destroyed.complete() } }