paulcollett / react-masonry-css

React Masonry layout component powered by CSS, dependancy free
https://paulcollett.github.io/react-masonry-css/demo/
MIT License
960 stars 66 forks source link

ie11 support #75

Open joycemau opened 3 years ago

joycemau commented 3 years ago

Used this on my site but it's not working on ie11. Was wondering if it is no longer supported.

Tried to open demo page as well on ie, also doesn't show the masonry.

mhxbe commented 3 years ago

We're experiencing the same problem where IE11-support suddenly stopped working. After delving around I've noticed the breaking change in this commit: https://github.com/paulcollett/react-masonry-css/commit/c0253722712bc4a3b53abc834f2ca53c0a195a4c

The es5.js version is swapped with a cjs.js version. Now, a Class is exposed in the code which IE11 can't handle. Compare these 2 files:

Current workaround Pin your react-masonry-css version to 1.0.14

"react-masonry-css": "1.0.14",
mhxbe commented 3 years ago

Hi @paulcollett!

It seems that the latest release broke semver. Would it be possible to publish 2 new versions?

Or is there something easier we could do? Thank you for your time.