-
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-07-25] [$250] When pressing Enter
in the amount page in submit expense flow the focus is on back
button instead of on Submit
button
#44956
Comments
Triggered auto assignment to @greg-schroeder ( |
Job added to Upwork: https://www.upwork.com/jobs/~01637c01d053be30ae |
Enter
in the amount page in submit expense flow the focus is on back
button instead of on Submit
buttonEnter
in the amount page in submit expense flow the focus is on back
button instead of on Submit
button
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.On the confirmation page, the back button is highlighted/focused What is the root cause of that problem?There was no previous logic to focus on the Submit button by default when entering a screen What changes do you think we should make in order to solve the problem?Add
Because the IOU confirmation screen should auto focus on the confirm button by default. By doing this we make sure Same can be done for any screens with a Submit button that we want to get focus by default. What alternative solutions did you explore? (Optional)In the Add a When we use the Submit button in submit expense flow, pass An improvement on this is to trigger the focus after |
ProposalPlease re-state the problem that we are trying to solve in this issue.The back button is highlighted when going to the confirmation page using the keyboard. What is the root cause of that problem?We have a focus trap and it will focus on the first focusable element, which is the back button. What changes do you think we should make in order to solve the problem?We can make use of the focus trap initial focus. If we want to focus the submit button, here is the step:
However, this won't work yet because the focus trap can't find the element with the assigned ID because |
ProposalPlease re-state the problem that we are trying to solve in this issue.The confirmation button is not focused on the money request confirmation page. What is the root cause of that problem?Screens like the money request confirmation page use Focus-trap, which by default focuses on the main focusable element if we don't set a value for
We have logic to remove focus from some screens like What changes do you think we should make in order to solve the problem?As described in the Focus-Trap documentation, we can set an initialFocus value. In this case, we can set initialFocus to the confirmation button element. To locate the confirmation button, we can use
This change will make the FocusTrap search the DOM for the new element with the ID. Once found, it will set the focus on the confirmation button. What alternative solutions did you explore? |
@alitoshmatov can you please review the proposals? |
I think this is being handled here. |
We can close this as dupe of #43662 |
Thanks |
Enter
in the amount page in submit expense flow the focus is on back
button instead of on Submit
buttonEnter
in the amount page in submit expense flow the focus is on back
button instead of on Submit
button
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.8-6 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-07-25. 🎊 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:
|
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: v9.0.5-3
Reproducible in staging?: y
Reproducible in production?: y
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: @mountiny
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1720438943674149
Action Performed:
Expected Result:
On the confirmation page, the Submit button should be highlighted/ focused
Actual Result:
On the confirmation page, the back button is highlighted/focused
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Screen.Recording.2024-07-08.at.12.35.54.mp4
Recording.299.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @greg-schroederThe text was updated successfully, but these errors were encountered: