mirror of
https://github.com/jquery/jquery.git
synced 2026-01-23 22:48:17 -05:00
Adding in the change recommended by Alexander Farkas to fix some bugs in the change delegation logic. Fixes #5851.
This commit is contained in:
@@ -670,9 +670,9 @@ function testChange( e ) {
|
||||
jQuery.data( elem, "_change_data", val );
|
||||
}
|
||||
|
||||
if ( elem.type !== "select" && (data != null || val) ) {
|
||||
if ( data != null || val ) {
|
||||
e.type = "change";
|
||||
return jQuery.event.trigger( e, arguments[1], this );
|
||||
return jQuery.event.trigger( e, arguments[1], elem );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user