Skip to content

Commit

Permalink
Bring back update logic as it is in fact required.
Browse files Browse the repository at this point in the history
  • Loading branch information
curran authored May 25, 2021
1 parent e47584c commit e0b61ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/selection/join.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ function(onenter, onupdate, onexit) {
} else {
enter = enter.append(onenter + "");
}
if (onupdate != null) update = onupdate(update);
if (onupdate != null) {
update = onupdate(update);
if (update) update = update.selection();
}
if (onexit == null) exit.remove(); else onexit(exit);
return enter && update ? enter.merge(update).order() : update;
}

0 comments on commit e0b61ec

Please sign in to comment.