From bf55674665bdbfda130bc59a7da91da75db81ae3 Mon Sep 17 00:00:00 2001 From: Jack Date: Mon, 30 Mar 2020 23:48:56 -0400 Subject: [PATCH] fix: fix ie edge CustomEvent bug switches details to be included in the CustomEvent.initCustomEvent constructor fix #498 --- src/decorators/staticMethods.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/decorators/staticMethods.js b/src/decorators/staticMethods.js index 888d5fa78..ab6cc89ae 100755 --- a/src/decorators/staticMethods.js +++ b/src/decorators/staticMethods.js @@ -12,8 +12,7 @@ const dispatchGlobalEvent = (eventName, opts) => { event = new window.CustomEvent(eventName, { detail: opts }); } else { event = document.createEvent("Event"); - event.initEvent(eventName, false, true); - event.detail = opts; + event.initEvent(eventName, false, true, opts); } window.dispatchEvent(event);