robbestad / react-iframe

Simple solution for using iframes in React
ISC License
434 stars 79 forks source link

IE11 support #16

Closed ironLink21 closed 6 years ago

ironLink21 commented 6 years ago

It looks like when trying to use this component in IE11 it throws errors for "SCRIPT438: Object doesn't support property or method 'assign' " which tracking down the issue means that it doesn't like Object.assign()

I found a workaround if you want to try it (if you really want to support IE11) to use the object-assign package here: https://github.com/sindresorhus/object-assign instead of the native Object.assign()

dylanpinn commented 6 years ago

I had a similar problem and fixed it by adding polyfills to add the missing methods.

ironLink21 commented 6 years ago

It was interesting because I had polyfills instead but it must have been caching because it's working now.