tajo / react-movable

🔀 Drag and drop for your React lists and tables. Accessible. Tiny.
https://react-movable.pages.dev
MIT License
1.53k stars 51 forks source link

IE 11 support #22

Closed konstantinn closed 4 years ago

konstantinn commented 5 years ago

Hello. First of all thanks for great library, simple and clean.

Readme states that IE 11 is supported but I've encountered small issue with it. Here https://github.com/tajo/react-movable/blob/v2.2.0/src/List.tsx#L132 findIndex method is used which seems to be not fully supported by IE https://caniuse.com/#search=findIndex

At least I've got

Screen Shot 2019-08-20 at 2 02 52 PM

and had to add this library to webpack config.

tajo commented 5 years ago

You could fix this by using babel/polyfill or core-js. Also, if this is the only problem, I am happy to accept PR replacing this method by something compatible.