react-draggable
react-draggable copied to clipboard
Seems that specifying position does not affect the Draggable during drag
trafficstars
According to the docs Draggable should ignore internal state when posiontion prop is specified, but this does not seem to be the case, see an example here https://codesandbox.io/s/9l9kmlmymr
Ok, I think I've found the problem, I also had a prop axis="x" which seemed to interfere with position. Unfortunately it's not mentioned in the docs, it would be nice if this was in the docs.
This saved me, indeed for any sort of control over the dragged position you need to set axis="none".
Set axis to none and disabled as true to stop . If you want to move provide position based on Ur need