- Notifications
You must be signed in to change notification settings - Fork20.6k
Event: Stop shimming focusin & focusout events#4362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
mgol commentedApr 17, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
EDIT: I mixed up the version, this has been implemented since Firefox 52 so we're good to go. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
There's a mention in README.md that should be removed as well.
@dmethvin Nice catch! PR updated. |
I also added a new test checking if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks!
Latest versions of all browsers now implement focusin & focusout nativelyand they all converged on a common event order so it doesn't make much sensefor us to normalize it to a different order anymore.Note that it means we no longer guarantee that focusin fires before focusand focusout before blur.Fixesjquerygh-4300
In IE, focus & blur events fire asynchronously, the test now accounts for that.Refjquerygh-4362
Uh oh!
There was an error while loading.Please reload this page.
Summary
Latest versions of all browsers now implement focusin & focusout natively
and they all converged on a common event order so it doesn't make much sense
for us to normalize it to a different order anymore.
Note that it means we no longer guarantee that focusin fires before focus
and focusout before blur.
-123
bytesFixesgh-4300
Checklist
New tests have been added to show the fix or feature worksIf needed, a docs issue/PR was created athttps://github.com/jquery/api.jquery.com(I think we never documented event order guarantees)