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

Fix defaultprevented for IE #5

Closed joscha closed 7 years ago

joscha commented 8 years ago

Using .preventDefault() on a CustomEvent in IE causes problems, see here: http://stackoverflow.com/questions/23349191

This PR adds a fix for this.

joscha commented 8 years ago

@krambuhl is this something you'd consider merging, or is there anything missing?

joscha commented 7 years ago

@krambuhl any chance to get this into master and a new version? Please?

krambuhl commented 7 years ago

@joscha thanks for your contribution of tested code! sorry that I overlooked this. I'll merge and publish a new minor version to npm tonight.

joscha commented 7 years ago

Awesome, that would be great! If you could add a comment here once the new version is out, that would be perfect!

krambuhl commented 7 years ago

It's actually already up! https://www.npmjs.com/package/custom-event-polyfill#0.3.0

joscha commented 7 years ago

O yay!! Thank you!