Skip to content

Commit

Permalink
triggerMouseEvent now returns the triggered event (#19)
Browse files Browse the repository at this point in the history
This allows calling code to do additional tests on the event; see chartjs/Chart.js#10046
  • Loading branch information
joshkel committed Feb 12, 2022
1 parent 8b46f8e commit b7ac044
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.js
Expand Up @@ -179,4 +179,6 @@ export async function triggerMouseEvent(chart, type, el) {
node.dispatchEvent(event);

await promise;

return event;
}

0 comments on commit b7ac044

Please sign in to comment.