Skip to content

Commit 455d21d

Browse files
committed
fix: listview node handling
1 parent 2c92f48 commit 455d21d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/angular/src/lib/view-util.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,10 @@ export class ViewUtil {
9090
// no previous or next, append to the parent
9191
previous = extendedParent.lastChild; // this can still be undefined if the parent has no children!
9292
}
93-
this.insertInList(extendedParent, extendedChild, previous, next);
93+
// Note: handle case with listview nodes
94+
if (extendedChild !== previous && extendedChild !== next) {
95+
this.insertInList(extendedParent, extendedChild, previous, next);
96+
}
9497

9598
if (isInvisibleNode(child)) {
9699
extendedChild.parentNode = extendedParent;

0 commit comments

Comments
 (0)