Search code examples
javascriptinternet-explorerinternet-explorer-11polyfills

IE11 - CustomEvent Polyfill stop triggering events after PDF download


As CustomeEvent is not supported in IE11, so added polyfill from MDN.

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

Steps to reproduce the bug:

  1. Open Demo in IE11/Win7

  2. Download PDF

  3. Change Checkbox, it will call native change event but CustomEvent does not trigger.

Open DevTool's console to visualize console.logs.

Kindly suggest alternative polyfill/solution/suggestion. Thanks


Solution

  • This does not solve the original problem that CustomEvents are no longer triggered after downloading the PDF, but I have noticed if you put target="_blank" on the <a> href link, the events continue to work after the download.