From e8d785aad88cbeae74f08a3bf6765037d08db882 Mon Sep 17 00:00:00 2001 From: Josh Kelley Date: Mon, 7 Feb 2022 22:56:16 -0500 Subject: [PATCH] triggerMouseEvent now returns the triggered event 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; }