kutlugsahin/smooth-dnd

Uncaught TypeError: Cannot read property 'addedIndex' of null

thanhbinh0995 opened this issue · 3 comments

image

Can check addedIndex attribute of null first before used?

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

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.

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