-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Me: 2fa Reauth Required Improvements #1386
Conversation
While you're in there, what about addressing #400
|
} | ||
|
||
return ( | ||
<Dialog | ||
autoFocus={ false } |
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.
Is this prop necessary?
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.
In my testing it is necessary.
My understanding is the the Dialog
component auto focuses on the content by default. So passing in autoFocus={false}
short circuits that and allows us to set our own autoFocus
.
See this block.
Looks good to me design-wise. |
Works as expected 🚢 |
Me: 2fa Reauth Required Improvements
Fixes #401
Fixes #400
This PR allows auto focusing of the 2fa code input when the reauth required dialog opens in
/me
.cc @v18 and @lezama for review
To test:
fix/me-reauth-autofocus
twostep_auth
cookie/me
in Calypso