Skip to content

Commit 5156917

Browse files
committed
fix(tabs): remove from parent nav when destroyed
1 parent f34d0c2 commit 5156917

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/tabs/tabs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,10 @@ export class Tabs extends Ion implements AfterViewInit {
297297
}
298298
}
299299

300+
ngOnDestroy() {
301+
this.parent.unregisterChildNav(this);
302+
}
303+
300304
/**
301305
* @internal
302306
*/

0 commit comments

Comments
 (0)