mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Widget: Set event.target in ._trigger(). Fixes #7852 - Droppable event target changes under jQuery 1.7.
This commit is contained in:
parent
c21a5b4451
commit
1b165148a6
4
ui/jquery.ui.widget.js
vendored
4
ui/jquery.ui.widget.js
vendored
@ -393,6 +393,10 @@ $.Widget.prototype = {
|
||||
}
|
||||
}
|
||||
|
||||
// the original event may come from any element
|
||||
// so we need to reset the target on the new event
|
||||
event.target = this.element[0];
|
||||
|
||||
this.element.trigger( event, data );
|
||||
|
||||
args = $.isArray( data ) ?
|
||||
|
Loading…
Reference in New Issue
Block a user