kutlugsahin / smooth-dnd

drag and drop library for javascript
MIT License
598 stars 146 forks source link

Uncaught TypeError: Cannot read property 'addedIndex' of null #72

Open thanhbinh0995 opened 4 years ago

thanhbinh0995 commented 4 years ago

image

Can check addedIndex attribute of null first before used?

Device: MacOS Browser: Chrome Library: vue-smooth-dnd

ashgrover commented 4 years ago

I'm seeing this issue as well, but on the react side instead. I can even reproduce it on their demo page - https://kutlugsahin.github.io/smooth-dnd-demo/

image

To reproduce, you just have to double click the cards really fast. Keep double clicking few times and the error will show up in the console.

I really like this library for dnd, I might have to switch over to a different one if this does not get fixed.

flipace commented 3 years ago

We fixed this issue in a forked version of smooth-dnd: https://github.com/ovos/smooth-dnd