Skip to content
Browse files

Widget: Set event.target in ._trigger(). Fixes #7852 - Droppable even…

…t target changes under jQuery 1.7.

(cherry picked from commit 1b16514)
  • Loading branch information...
1 parent 6f6e2de commit aa4e8ab3fb83f2550bac1e5476bd20f84a5883d9 @scottgonzalez scottgonzalez committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 ui/jquery.ui.widget.js
View
4 ui/jquery.ui.widget.js
@@ -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) &&

0 comments on commit aa4e8ab

Please sign in to comment.
Something went wrong with that request. Please try again.