react-sortable-hoc icon indicating copy to clipboard operation
react-sortable-hoc copied to clipboard

Dynamic adding items to a list breaks drag UX

Open elrapha opened this issue 7 years ago • 2 comments

So so far I am able to add elements to my list But drag and drop only works if there is initially at least one element already in the list.

if i start adding from an empty list, the drag fails. So in otherwords, the drag functionality is broken if the list is dynamic and initially empty.

Any help?

elrapha avatar Jul 15 '19 08:07 elrapha

Everything works for me when following best practises with React, could you provide an example of your code that breaks? Could make really thin component structure with fake data to show what is wrong.

knarkunas avatar Jul 25 '19 03:07 knarkunas

Please set up a CodeSandbox replicating the issue if you think this is a bug with react-sortable-hoc. You can do so by forking this sandbox https://codesandbox.io/s/o104x95y86.

Otherwise, the best place to ask for help is StackOverflow

clauderic avatar Aug 22 '19 14:08 clauderic