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);