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:
Open Demo in IE11/Win7
Download PDF
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
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.