From b7ac0448bff9d3163c8ba057d2d1c5fe41b7730e Mon Sep 17 00:00:00 2001 From: Josh Kelley Date: Sat, 12 Feb 2022 11:49:18 -0500 Subject: [PATCH] triggerMouseEvent now returns the triggered event (#19) This allows calling code to do additional tests on the event; see https://github.com/chartjs/Chart.js/pull/10046 --- src/utils.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/utils.js b/src/utils.js index 64118a5..5453607 100644 --- a/src/utils.js +++ b/src/utils.js @@ -179,4 +179,6 @@ export async function triggerMouseEvent(chart, type, el) { node.dispatchEvent(event); await promise; + + return event; }