react-sortable-hoc
react-sortable-hoc copied to clipboard
lockAxis removes lockToContainerEdges from the sortable container?
Hi! I am attempting to create a sortable container whose draggable can move by the y axis and will be contained to the container
<SortableContainer axis='y' lockAxis='y' lockToContainerEdges={true} items={items} onSortEnd={onSortEnd} helprClass={css.sortableHelper}/>
When attempting this, the draggables can move only in the Y axis but they can be dragged allover the window, outside the container's edges.

And when I try to remove lockAxis the drag becomes invisible and successfully sorts the items as I drag the invisible item.
<SortableContainer axis='y' lockToContainerEdges={true} items={items} onSortEnd={onSortEnd} helprClass={css.sortableHelper}/>

Removing only axis = 'y' has me remaining in the original state from before.
Is there a way to fix this problem? Thanks in advance!
I got the same issue +1
change axis='y' to axis='xy'
still not working