Ivy: Animation events removed when node's position is changed
See original GitHub issueπ bug report
Affected Package
The issue is caused by package @angular/animationsIs this a regression?
Yes, without ivy animation events don't removed.Description
Animation events is removed from AnimationTransitionNamespace
during change nodeβs position inside ViewContainerRef
. This causes issue inside mat-tab-group
when tabβs order is changed because displaying content depends on animation events.
When nodeβs index is changed a node detaches from old position and inserts into new one. During detach animation events are removed, but not added when node inserts back into new position.
π¬ Minimal Reproduction
Steps to reproduce:
- Open StackBlitz
- Enable Ivy in settings
- Click on rearrange button
- Click on Tab 2. There is no content.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:10
Top Results From Across the Web
Using Animation Events - Unity - Manual
To delete an Event, select it and press the Delete key, or right-click on it and select Delete Event. Animation Events are shown...
Read more >Process Modeling - Axon.ivy 7.0 | Designer Guide
Artifacts in those projects are changed frequently. ... Delete - Removes the selected node from the project. ... Adjust the engine animation speed....
Read more >JavaScript Data Grid: Grid Events - AG Grid
This is a list of the events that the grid raises. ... The tool panel size has been changed. ... A pivot column...
Read more >components/CHANGELOG.md at main Β· angular ... - GitHub
Breaking Changes. cdk. The deprecated angular/cdk/testing/protractor entry-point has been removed.
Read more >Element: animationend event - Web APIs | MDN
The animationend event is fired when a CSS Animation has completed. If the animation aborts before reaching completion, such as if theΒ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Bettaswamy @Bschitter I found a working example of the mat-tab reordering here if you both still needed it: https://stackblitz.com/edit/angular-ivy-bvhnt7?file=src%2Fapp%2Fapp.component.ts
found from this git issue: https://github.com/angular/components/issues/13572
Iβm also having the same issue with mat-tab-group on Angular 13.1.1 and with Ivy. Really donβt want to turn off Ivyβ¦ Edit: As I see, from version 12 you cannot turn it off anymore.