polymer icon indicating copy to clipboard operation
polymer copied to clipboard

new Event breaks IE11

Open davidlwatsonjr opened this issue 11 years ago • 6 comments

The new code to cache events is using new Event:

https://github.com/Polymer/polymer/blob/cb68ce54ebdcfb2d6f7342e801574881fb158076/src/standard/utils.html#L245

This breaks IE11: Object doesn't support this action

Should this be a CustomEvent instead of an Event?

davidlwatsonjr avatar Nov 18 '15 16:11 davidlwatsonjr

https://github.com/Polymer/polymer/pull/3015

davidlwatsonjr avatar Nov 18 '15 20:11 davidlwatsonjr

Do you have webcomponents.js v0.7.18 installed? We provide a polyfill for the Event constructor.

dfreedm avatar Nov 18 '15 22:11 dfreedm

I was having this issue as well. Updating to v0.7.18 solved it for me.

jshcrowthe avatar Nov 19 '15 02:11 jshcrowthe

@jshcrowthe Polymer 1.2.3+ depends on webcomponents v0.7.18. Are you saying that bower didn't update them together for you?

dfreedm avatar Nov 19 '15 18:11 dfreedm

I wasn't consuming webcomponentsjs via bower due to some weirdness in my asset pipeline. The polymer update did request v0.7.18 I just had to manually bring it over.

jshcrowthe avatar Nov 19 '15 18:11 jshcrowthe

Closing as 0.7.18 fixes the issue.

davidlwatsonjr avatar Dec 04 '15 22:12 davidlwatsonjr