Skip to content

Tests: Fix the "dialog: core: focus tabbable" test in IE #1951

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

Merged
merged 1 commit into from
Mar 16, 2021

Conversation

mgol
Copy link
Member

@mgol mgol commented Mar 14, 2021

In IE in jQuery 3.4+ a sequence:

$( inputNode ).trigger( "focus" ).trigger( "blur" ).trigger( "focus" );

doesn't end up with a focused input. However, in this test we only want to check
that the last focused input receives the focus back when _focusTabbable() is
called which in reality doesn't happen so quickly so let's avoid the issue by
waiting a bit.

Ref jquery/jquery#4856

In IE in jQuery 3.4+ a sequence:
```js
$( inputNode ).trigger( "focus" ).trigger( "blur" ).trigger( "focus" );
```
doesn't end up with a focused input. However, in this test we only want to check
that the last focused input receives the focus back when `_focusTabbable()` is
called which in reality doesn't happen so quickly so let's avoid the issue by
waiting a bit.

Ref jquery/jquery#4856
@mgol mgol added this to the 1.13 milestone Mar 14, 2021
@mgol mgol requested review from fnagel and arschmitz March 14, 2021 12:41
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 dff0dc0 into jquery:main Mar 16, 2021
@mgol mgol deleted the ie-dialog-test-fix branch March 16, 2021 21:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants