mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Change event did not fire in IE when an explicit .focus() was used. Fixes #6374.
This commit is contained in:
parent
79305ed146
commit
cbf9d874e5
@ -809,7 +809,7 @@ if ( !jQuery.support.changeBubbles ) {
|
|||||||
|
|
||||||
// Beforeactivate happens also before the previous element is blurred
|
// Beforeactivate happens also before the previous element is blurred
|
||||||
// with this event you can't trigger a change event, but you can store
|
// with this event you can't trigger a change event, but you can store
|
||||||
// information/focus[in] is not needed anymore
|
// information
|
||||||
beforeactivate: function( e ) {
|
beforeactivate: function( e ) {
|
||||||
var elem = e.target;
|
var elem = e.target;
|
||||||
jQuery.data( elem, "_change_data", getVal(elem) );
|
jQuery.data( elem, "_change_data", getVal(elem) );
|
||||||
@ -836,6 +836,9 @@ if ( !jQuery.support.changeBubbles ) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
changeFilters = jQuery.event.special.change.filters;
|
changeFilters = jQuery.event.special.change.filters;
|
||||||
|
|
||||||
|
// Handle when the input is .focus()'d
|
||||||
|
changeFilters.focus = changeFilters.beforeactivate;
|
||||||
}
|
}
|
||||||
|
|
||||||
function trigger( type, elem, args ) {
|
function trigger( type, elem, args ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user