Skip to content

Commit

Permalink
fix: listview node handling
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Sep 8, 2022
1 parent 2c92f48 commit 455d21d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/angular/src/lib/view-util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ export class ViewUtil {
// no previous or next, append to the parent
previous = extendedParent.lastChild; // this can still be undefined if the parent has no children!
}
this.insertInList(extendedParent, extendedChild, previous, next);
// Note: handle case with listview nodes
if (extendedChild !== previous && extendedChild !== next) {
this.insertInList(extendedParent, extendedChild, previous, next);
}

if (isInvisibleNode(child)) {
extendedChild.parentNode = extendedParent;
Expand Down

0 comments on commit 455d21d

Please sign in to comment.