fix(core): Store ICU state in LView
rather than in TView
(#39233)
Before this refactoring/fix the ICU would store the current selected index in `TView`. This is incorrect, since if ICU is in `ngFor` it will cause issues in some circumstances. This refactoring properly moves the state to `LView`. closes #37021 closes #38144 closes #38073 PR Close #39233
This commit is contained in:

committed by
Alex Rickabaugh

parent
6790848f68
commit
ca11ef2376
@ -166,9 +166,10 @@ export class BaseAnimationRenderer implements Renderer2 {
|
||||
this.engine.onInsert(this.namespaceId, newChild, parent, false);
|
||||
}
|
||||
|
||||
insertBefore(parent: any, newChild: any, refChild: any): void {
|
||||
insertBefore(parent: any, newChild: any, refChild: any, isMove: boolean = true): void {
|
||||
this.delegate.insertBefore(parent, newChild, refChild);
|
||||
this.engine.onInsert(this.namespaceId, newChild, parent, true);
|
||||
// If `isMove` true than we should animate this insert.
|
||||
this.engine.onInsert(this.namespaceId, newChild, parent, isMove);
|
||||
}
|
||||
|
||||
removeChild(parent: any, oldChild: any, isHostElement: boolean): void {
|
||||
|
Reference in New Issue
Block a user