Commit 619a89d5 authored by Dave Methvin's avatar Dave Methvin Committed by timmywil

Fix #6593. Don't trigger `change` event twice when simulating it on IE.

parent 6872d31f
...@@ -799,8 +799,8 @@ if ( !jQuery.support.changeBubbles ) { ...@@ -799,8 +799,8 @@ if ( !jQuery.support.changeBubbles ) {
jQuery._data( elem, "_change_data", val ); jQuery._data( elem, "_change_data", val );
} }
if ( val !== old && old != null ) { if ( val !== old && old != null && elem.parentNode ) {
simulate( "change", elem, e, true ); simulate( "change", elem.parentNode, e, true );
} }
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment