Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dialog: Workaround broken focus re-triggering in jQuery 3.4/3.5 #1946

Merged
merged 1 commit into from
Feb 21, 2021

Conversation

mgol
Copy link
Member

@mgol mgol commented Feb 21, 2021

Focus re-triggering in jQuery 3.4/3.5 makes the original element
have its focus event propagated last, breaking the re-targeting.
Trigger focus in a delay in addition if needed to avoid the issue.

This fixes the "interaction between overlay and other dialogs" core dialog
test when tested against jQuery 3.4/3.5.

Ref jquery/jquery#4382

Focus re-triggering in jQuery 3.4/3.5 makes the original element
have its focus event propagated last, breaking the re-targeting.
Trigger focus in a delay in addition if needed to avoid the issue.

This fixes the "interaction between overlay and other dialogs" core dialog
test when tested against jQuery 3.4/3.5.

Ref jquery/jquery#4382
@mgol mgol added this to the 1.13 milestone Feb 21, 2021
@mgol mgol mentioned this pull request Feb 21, 2021
Copy link
Member

@fnagel fnagel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 by reading

@mgol mgol merged commit 834ee5f into jquery:main Feb 21, 2021
@mgol mgol deleted the focus-retriggering-workaround branch February 21, 2021 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants