mirror of
https://github.com/jquery/jquery.git
synced 2026-02-08 00:15:03 -05:00
Fix #6593. Don't trigger change event twice when simulating it on IE.
This commit is contained in:
@@ -799,8 +799,8 @@ if ( !jQuery.support.changeBubbles ) {
|
||||
jQuery._data( elem, "_change_data", val );
|
||||
}
|
||||
|
||||
if ( val !== old && old != null ) {
|
||||
simulate( "change", elem, e, true );
|
||||
if ( val !== old && old != null && elem.parentNode ) {
|
||||
simulate( "change", elem.parentNode, e, true );
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user