Skip to content

Commit

Permalink
Widget: Set event.target in ._trigger(). Fixes #7852 - Droppable even…
Browse files Browse the repository at this point in the history
…t target changes under jQuery 1.7.

(cherry picked from commit 1b16514)
  • Loading branch information
scottgonzalez committed Nov 10, 2011
1 parent 6f6e2de commit aa4e8ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/jquery.ui.widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit aa4e8ab

Please sign in to comment.