krambuhl / custom-event-polyfill

Polyfill for creating CustomEvents on IE9/10/11 if native implementation is missing.
MIT License
112 stars 19 forks source link

IE11 - CustomEvent Polyfill stop triggering events after PDF download #10

Closed mahboob-awan closed 6 years ago

mahboob-awan commented 6 years ago

Hi,

As CustomeEvent is not supported in IE11, so added polyfill from MDN and also tested this polyfill.

That is working fine in other browser(Chrome, Firefox) and even IE11 but it stops triggering/listening event after very specific steps. That is download a PDF and trigger "change" event.

Please check demo in IE11/Win7.

Steps to reproduce the bug:

1 - Download PDF

2 - Change Checkbox, it will call native "change" event but CustomEvent does not trigger.

NOTE: Open DevTool's console to visualize console.logs.

Again Demo URL - https://goo.gl/bYYRHf

Also reported this issue at Microsoft's community.

Kindly suggest alternative polyfill/solution/suggestion. Thanks

mahboob-awan commented 6 years ago

Problem is solved using solution mentioned in - https://stackoverflow.com/questions/48669224/ie11-customevent-polyfill-stop-triggering-events-after-pdf-download