Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The drag and drop doesn't for me in IE-11 #319

Closed
alex6633 opened this issue Feb 12, 2018 · 3 comments
Closed

The drag and drop doesn't for me in IE-11 #319

alex6633 opened this issue Feb 12, 2018 · 3 comments

Comments

@alex6633
Copy link

alex6633 commented Feb 12, 2018

#Hi @alexreardon ,

This is the best library for Drag And Drop I have seen till date. It works perfectly for me in chrome. But it doesn't work in IE. Do I need to add some Polyfill to make it work ?

It throws me the below error each time I try to drag:

Object doesn't support property or method 'find'

@alexreardon
Copy link
Collaborator

Hi there,

Yes, babel will usually take care of this for you if you polyfill Array.prototype.find. However, it is probably best if we (the library) avoid using the .find method altogether.

We add these polyfills in the examples. You will find that this example works correctly in ie11. However, I think we should not force consumers to add this polyfill. We could

  • tell consumers what polyfills are needed
  • not use .find at all

👍

@alexreardon
Copy link
Collaborator

alexreardon commented Feb 12, 2018

I'll close this and track the work in #320.

For now if you polyfill Array.prototype.find you should be good to go. You could either use the babel polyfill or a specific .find polyfill

@alex6633
Copy link
Author

Hi @alexreardon ,

Thank you so much 👍 it works for me now. I used babel polyfill.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants