-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[HOLD for payment 2024-08-02] [$250] Login - Focus is shown on login field briefly and scrolled down #45571
Comments
Triggered auto assignment to @Julesssss ( |
Triggered auto assignment to @mallenexpensify ( |
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
|
We think this issue might be related to the #vip-vsb |
Production Screen_Recording_20240717_102451_Chrome.mp4 |
I can reproduce, making external |
Job added to Upwork: https://www.upwork.com/jobs/~012686d622c878c512 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @DylanDylann ( |
This PR seems a likely cause. I am hesitant to revert as it fixes many issues. |
ProposalPlease re-state the problem that we are trying to solve in this issue.The login page is scrolled down. What is the root cause of that problem?This happens after #44932. In that PR, we update the focus trap initial focus logic so that if there is already a focused element, the initial focus won't fire. App/src/components/FocusTrap/FocusTrapForScreen/index.web.tsx Lines 44 to 50 in e3b508b
However, on the login page, none of the elements is already focused, so the initial focus fires and focuses on the footer text link instead of the login field. Why? That's because the login form is wrapped with App/src/pages/signin/LoginForm/BaseLoginForm.tsx Lines 337 to 343 in fc9b7ac
On the login page, we actually have a logic to auto-focus the login input field, but it's only for desktop/web. For mWeb/native, we won't auto-focus the input field. App/src/pages/signin/LoginForm/BaseLoginForm.tsx Lines 166 to 177 in fc9b7ac
Previously, we always ignored the focus trap initial focus for the login page. What changes do you think we should make in order to solve the problem?Bring back the previous logic that ignores the focus-trap initial focus for login page.
The |
I’d like to take a look at this issue, as it’s an edge case resulting from the change that removed |
@suneox drafted the (likely) offending PR so assigning to them for now. @bernhardoj thanks for the proposal. It's possible compensation might be due, we'll address once the PR for the fix has hit production. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.12-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-08-02. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Triggered auto assignment to @puneetlath ( |
@puneetlath I'm off til Monday afternoon, can you help with payment here? Thx |
No payment due here. Let's close |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.8
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4729962
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Pre- condition
Expected Result:
Focus should be on top login screen and must not scrolled down
Actual Result:
Focus is shown on login field briefly and scrolled down.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6544764_1721200290708.az_recorder_20240717_123451_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @mallenexpensifyThe text was updated successfully, but these errors were encountered: