From 6bb3bd8d210e9a0dad4d104a4b1d000a7d3a8387 Mon Sep 17 00:00:00 2001 From: George Wilson Date: Tue, 18 Jul 2017 16:01:19 +0100 Subject: [PATCH] chore: Fix TS issue on mouse event creation (#306) --- tests/helpers.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/helpers.ts b/tests/helpers.ts index 6d3c8137..cb183c73 100644 --- a/tests/helpers.ts +++ b/tests/helpers.ts @@ -21,7 +21,10 @@ export function mouseclick( element ) { // create a mouse click event var dispatchedEvent try { - dispatchedEvent = new MouseEvent('click', true); + dispatchedEvent = new MouseEvent('click', { + bubbles: true, + cancelable: false + }); } catch (e) { dispatchedEvent = document.createEvent('MouseEvent'); dispatchedEvent.initEvent('click', true, false);