Skip to content

Commit

Permalink
Alternative solution for d3#257
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed May 25, 2021
1 parent 464cb9a commit 4928158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selection/join.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ export default function(onenter, onupdate, onexit) {
enter = typeof onenter === "function" ? onenter(enter) : enter.append(onenter + "");
if (onupdate != null) update = onupdate(update);
if (onexit == null) exit.remove(); else onexit(exit);
return enter && update ? enter.merge(update).order() : update;
return enter && update ? enter.selection().merge(update.selection()).order() : update;
}

0 comments on commit 4928158

Please sign in to comment.