Opened 7 years ago

Closed 7 years ago

#14933 closed bug (notabug)

Rejecting/preventing drop from greedy droppable doesn't work

Reported by: tilwinjoy Owned by:
Priority: minor Milestone: none
Component: ui.droppable Version: 1.11.4
Keywords: Cc:
Blocked by: Blocking:


I have a greedy droppable, and a draggable that reverts when invalid.

If a draggable is dropped on the greedy droppable and the drop was rejected (for example due to a falsy value from accept, or a different value of scope option) I expect the draggable to revert back to it's original position because my greedy droppable on which drop occurred decided to reject the drop and parent shouldn't be allowed to capture the element.

But currently the parents captures the element.

Or in other words: When my greedy (I gave it decision power over it's parents) droppable say -"no you should't stay on top of me", the draggable shouldn't stay on top of it with the excuse that it's on top of some parent droppable.

Here is a jsfiddle demo with accept option and another with scope option in

A related question in stackoverflow:

Change History (2)

comment:1 Changed 7 years ago by Scott González

I disagree about your assumptions and think the current behavior is correct. Especially since you can control the reception in nested droppables with the current behaivior, but you couldn't with your proposed change.

comment:2 Changed 7 years ago by Scott González

Resolution: notabug
Status: newclosed

I've consulted with the team about this, and my previous comment stands.

Note: See TracTickets for help on using tickets.