Skip to content

Is there event like "dragOver" or "dragLeave" ? #2075

Closed

Description

@GuzlejM

I have project where are columns toggling open/close whenever I drag over column dragged element(card in this case).

Problem is when ever i drag over columns, they will stay open and not close back because onMove events has only from/to handler.

Activity

  1. ataft commented on Sep 21, 2021

    @ataft

    These would be useful, and it looks like the stale leave-enter branch attempted to solve this (see issue #979), but was never merged.

    There is a Stack Overflow solution posted by @owen-m1, but I cannot find an explanation for why this is not in the library. From my perspective, on 'dragleave', the sortable item should be removed from the destination. Currently, it is only removed on 'drop' when using the RevertOnSpill Plugin.

  2. owen-m1 commented on Oct 11, 2021

    @owen-m1
    Member

    As @ataft said, you can use the code i wrote in my Stack Overflow answer. I think its unnecessary for this to be in Sortable natively since you can just write custom events to handle it.

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

      Issue actions