Skip to content

Commit 1b16514

Browse files
committed
Widget: Set event.target in ._trigger(). Fixes #7852 - Droppable event target changes under jQuery 1.7.
1 parent c21a5b4 commit 1b16514

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ui/jquery.ui.widget.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,10 @@ $.Widget.prototype = {
393393
}
394394
}
395395

396+
// the original event may come from any element
397+
// so we need to reset the target on the new event
398+
event.target = this.element[0];
399+
396400
this.element.trigger( event, data );
397401

398402
args = $.isArray( data ) ?

0 commit comments

Comments
 (0)