Skip to content

Prevent drop if element is not currently on dropzone #254

Open
@loverdrive

Description

@loverdrive

Hi, I like this library, but i like to modify a default behaviour to fit my needs.
I have 3 div with draggable elements. Name it A, B and C.
I start drag from A and want to drop to C. I stop dragging element over C, but C is disabled, so element can't drop in C.
Ok, to reach C, I am passed over B, so B "get the drop focus". So, when i stop drag element over C (disabled), the element will drop in B. I don't like this behaviour. I like that when i stop drag element over C (disabled), the element will return in A (the starting point).

How could i configure library to get this behaviour?
Thank you and thanks for your work! :)

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