Skip to content

Sortable: Marginal event descriptions #166

Open
@Klap-in

Description

@Klap-in

When i was applying draggable and sortable i discover a difference between the ui.item that is given to the beforeStop and the receive event.

For both the api description is:
"The jQuery object representing the current dragged element."

http://api.jqueryui.com/sortable/#event-receive
http://api.jqueryui.com/sortable/#event-beforeStop

but when i modify ui.item in the receive callback the origin dragged item is modified, but not the dropped item. While i modify the ui.item in the beforeStop event the dropped item changes and not the origin (i my case the lastest was desired).

Is it possible to describe in the documentation bit more elaborated what the ui object is? or what the context is of the callback event.
With this information the differences between the events become more clear imho.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @Klap-in

      Issue actions

        Sortable: Marginal event descriptions · Issue #166 · jquery/api.jqueryui.com