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.
(cherry picked from commit 1b165148a6
)
This commit is contained in:
parent
6f6e2ded1a
commit
aa4e8ab3fb
4
ui/jquery.ui.widget.js
vendored
4
ui/jquery.ui.widget.js
vendored
@ -257,6 +257,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 );
|
||||
|
||||
return !( $.isFunction(callback) &&
|
||||
|
Loading…
Reference in New Issue
Block a user