Skip to content

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

@jmart6784

Description

@jmart6784

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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions