Skip to content

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 arschmitz and fnagel 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

2 participants