Skip to content

Commit

Permalink
resolve transition.end() immediately when the selection is empty
Browse files Browse the repository at this point in the history
fixes #105
  • Loading branch information
Fil committed Jul 8, 2020
1 parent 6f27610 commit baaf0dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/transition/end.js
Expand Up @@ -22,5 +22,8 @@ export default function() {

schedule.on = on1;
});

// The selection was empty, resolve end immediately
if (!size) resolve();
});
}

0 comments on commit baaf0dd

Please sign in to comment.