You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tab content DOM will NOT be destroyed if it is not not active, when the component is using onPush change detection. It is very critical for me because I use components as content templates and I expect a new instance every time the tab is activated.
Link to minimally-working StackBlitz that reproduces the issue:
javix
changed the title
The navtab content DOM will NOT be destroyed if it is not not active
The navtab content DOM will NOT be destroyed if it is not active
Jan 6, 2021
maxokorokov
added a commit
to maxokorokov/ng-bootstrap
that referenced
this issue
Jan 8, 2021
A regression introduced with animations.
We already have all tests in place that cover the use case in the issue if we mark `ngbNavOutlet` with `OnPush` itself.
Fixesng-bootstrap#3930
A regression introduced with animations.
We already have all tests in place that cover the use case in the issue if we mark `ngbNavOutlet` with `OnPush` itself.
Fixes#3930
Bug description:
The tab content DOM will NOT be destroyed if it is not not active, when the component is using onPush change detection. It is very critical for me because I use components as content templates and I expect a new instance every time the tab is activated.
Link to minimally-working StackBlitz that reproduces the issue:
https://angular-b2j9uy.stackblitz.io
If you switch between the tabs, the last two always stay in the DOM.
Versions of Angular, ng-bootstrap and Bootstrap:
Angular: 11.0.5
ng-bootstrap: 8.0.1
The text was updated successfully, but these errors were encountered: