-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$500] IOU - Blue box surrounding the currency after the currency selection #31687
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01a4bb2613eb2f6256 |
Triggered auto assignment to @JmillsExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @akinwale ( |
👋 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:
|
📣 @github-actions[bot]! 📣
|
Triggered auto assignment to @lakchote ( |
Not reproducible on production 20231122_182005.mp4 |
@ishpaul777 I saw you mentioned #31225 for introducing a regression, can you please confirm that again? cause it has been mentioned in the issue. |
I spoke too early (issue still present with reverting PR) thats why i deleted the comment Sorry for ping. |
okay, so the PR didn't introduce the regression, am I right? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Selecting a currency with the ENTER key highlights the currency symbol button with a blue outline. What is the root cause of that problem?This issue happens after the focus trap PR #27670. When we open the currency selection page, the focus trap will "save" the last focused element, the currency symbol button. When we close the currency symbol button, the focus trap will re-focus on the currency symbol button. This is the default behavior of the focus trap which is explained here. Because we select the currency with the keyboard, the blue outline shows, and then immediately the focus is moved to the amount input by this code. App/src/pages/iou/steps/NewRequestAmountPage.js Lines 74 to 84 in f6ef8b8
In a normal case, I think the behavior is fine, but the unpleasant thing here is that the blue outline is shown for a brief moment and then disappears. What changes do you think we should make in order to solve the problem?For the money request page, don't refocus back to the last focused element by passing
In MoneyRequestSelectorPage and EditRequestAmountPage,
|
The issue comes from this PR and is a regression. cc @roryabraham @kosmydel could you please fix it while considering @bernhardoj proposal above? I've removed the Deploy Blocker since it's not that sensitive of an issue. |
Another issue with the same root cause here #31725. I guess this happens in many places, perhaps we should set |
ProposalPlease re-state the problem that we are trying to solve in this issue.Workspace - Blue focus is shown when changing workspace name What is the root cause of that problem?We added a focus trap in this PR #27670 which makes the focus after we submit a form with enter key What changes do you think we should make in order to solve the problem?In
What alternative solutions did you explore? (Optional)We can change App/src/components/ScreenWrapper/index.js Line 155 in b30b555
|
I think we can close this issue, as the PR was reverted. I am going to fix it when I prepare a new PR. |
Closing this issue as it's no longer happening since the PR was reverted. @kosmydel will create a new PR to address this issue. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: v1.4.2-0
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause-Internal Team
Slack conversation: @
Action Performed:
Expected Result:
There will be no blue box surrounding the currency after the selection.
Actual Result:
There is a blue box surrounding the currency after the selection.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6286950_1700649734281.20231122_101722__1_.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: