React-sortable-hoc transition doesnt work

493 views Asked by At

I made a sortable list using react-sortable-hoc. My problem is that there is no transition. I tried to use transitionDuration, but it still doesnt work. Here is sandbox with problem: https://codesandbox.io/s/stoic-hill-lulln?file=/src/App.js

1

There are 1 answers

1
Jay DeGuzman On

try wrapping your SortableItem in List

    const SortableItem = sortableElement(({ value, index }) => (
    <li style={{"listStyleType":'none'}}>
    << YOUR CODE HERE>>
    </li>
  ));