mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Currently, when using `provideAnimationsAsync`, Angular uses `AnimationRenderer` as the renderer. When the root view is removed, the `AnimationRenderer` defers the actual work to the `TransitionAnimationEngine` to do this, and the `TransitionAnimationEngine` doesn't actually remove the DOM node, but just calls `markElementAsRemoved()`. The actual DOM node is not removed until `TransitionAnimationEngine` "flushes". Unfortunately, though, that "flush" will never happen, since the root view is being destroyed and there will be no more flushes. This commit adds `flush()` call when the root view is being destroyed. PR Close #53033 |
||
|---|---|---|
| .. | ||
| animation_renderer_spec.ts | ||
| BUILD.bazel | ||
| noop_animations_module_spec.ts | ||