Skip to content
Permalink
Browse files

Change event did not fire in IE when an explicit .focus() was used. F…

…ixes #6374.
  • Loading branch information...
jeresig committed Oct 9, 2010
1 parent 79305ed commit cbf9d874e52212d0289deae747066eccfebde770
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/event.js
@@ -809,7 +809,7 @@ if ( !jQuery.support.changeBubbles ) {

// Beforeactivate happens also before the previous element is blurred
// 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 ) {
var elem = e.target;
jQuery.data( elem, "_change_data", getVal(elem) );
@@ -836,6 +836,9 @@ if ( !jQuery.support.changeBubbles ) {
};

changeFilters = jQuery.event.special.change.filters;

// Handle when the input is .focus()'d
changeFilters.focus = changeFilters.beforeactivate;
}

function trigger( type, elem, args ) {

0 comments on commit cbf9d87

Please sign in to comment.
You can’t perform that action at this time.