react-draggable
react-draggable copied to clipboard
Can not get the id (e.target.id) onStop/onDrag function
trafficstars
Hi
I am trying to set all the table's positions on localStorage. So that it does not reset the table positons when the browser refreshes.
This works but some of my element (onDrag/onStop method) does not return the id hence it creates an empty object on the localStorage.
This is a company project I can not share the whole project as per company terms and conditions. So I set up a dummy project on code sandbox. here is the link: https://codesandbox.io/s/empty-https-gdp2kc?file=/src/App.js
It would be better if you test on your local host (computer) instead of codesandbox.io.
Does anyone have any solutions??
Thanks in advance