Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use payload on onDragEnd Or return dragged element #96

Open
jmart6784 opened this issue Jul 14, 2023 · 0 comments
Open

How to use payload on onDragEnd Or return dragged element #96

jmart6784 opened this issue Jul 14, 2023 · 0 comments

Comments

@jmart6784
Copy link

Hello, I am trying to get the payload object, but it returns undefined. I am new to react-smooth-dnd and I am trying to return the element that was dragged in the OnDragEnd event. I see the documentation states the payload object is returned by the getChildPayload function. Is there an example that you can provide on how to return the payload? If the payload is not the dragged element how would I access that? Specifically, I am trying to retrieve that Y-axis value when the dragging stops.

"payload : object : the payload object that is returned by getChildPayload function. It will be undefined in case getChildPayload is not set."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant