clauderic / react-sortable-hoc

A set of higher-order components to turn any list into an animated, accessible and touch-friendly sortable list✌️
https://clauderic.github.io/react-sortable-hoc/
MIT License
10.77k stars 978 forks source link

shouldCancelStart is not a function #860

Open AleksaButterfly opened 1 year ago

AleksaButterfly commented 1 year ago

Hey there! Seems that there is an issue with the package, and whenever I click on the sortable item, I can see Uncaught TypeError: shouldCancelStart is not a function error in my console. This produces issues with my sortable items as they are videos, so they can't be clicked. I've tried passing shouldCancelStart as a prop, but it doesn't fix the problem.

Is there any fix or should I just install an older package version?

Screen Shot 2022-10-18 at 12 33 38

tomasantunes commented 1 year ago

You're supposed to pass that prop to the container and not the item.