We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 17b90a5 commit 5040000Copy full SHA for 5040000
packages/angular/src/lib/view-util.ts
@@ -80,6 +80,12 @@ export class ViewUtil {
80
const extendedParent = this.ensureNgViewExtensions(parent);
81
const extendedChild = this.ensureNgViewExtensions(child);
82
83
+ // this should never enter, as angular is supposed to remove the child from the previous parent before calling this
84
+ // but when angular animations are enabled, the removal might be delayed, so we need to ensure this view is not anywhere
85
+ // this seems to only happens to CommentNodes
86
+ if (extendedChild.parentNode) {
87
+ this.removeChild(extendedChild.parentNode, extendedChild);
88
+ }
89
// if there's a next child, previous is the previousSibling of it
90
if (next) {
91
previous = next.previousSibling;
0 commit comments