Skip to content

Commit fdc332e

Browse files
bikeshedderscottgonzalez
authored andcommitted
Droppable: Make sure._drop is called for all relevant droppables. Fixes #6009 - Upper droppable should receive draggable. Fixes #6085 - Parent droppable takes precedence over dynamically created child droppable.
1 parent 5fb9629 commit fdc332e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.droppable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ $.ui.ddmanager = {
224224

225225
if(!this.options) return;
226226
if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance))
227-
dropped = dropped || this._drop.call(this, event);
227+
dropped = this._drop.call(this, event) || dropped;
228228

229229
if (!this.options.disabled && this.visible && this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) {
230230
this.isout = 1; this.isover = 0;

0 commit comments

Comments
 (0)