-
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
[$250] Can't go back in "Contact methods" if triggering "Back" button using Enter #29132
Comments
Job added to Upwork: https://www.upwork.com/jobs/~014d24f78857b6fbc3 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Can't go back in "Contact methods" if triggering "Back" button using Enter What is the root cause of that problem?App/src/pages/settings/Profile/Contacts/ContactMethodsPage.js Lines 137 to 142 in b2cbd26
The issue is with pressOnEnter prop here so on pressing enter, New Contact Method button is triggered. What changes do you think we should make in order to solve the problem?As the contact methods page does not contain any input elements (like text of selection) we dont need pressOnEnter functionality here. What alternative solutions did you explore? (Optional)N/A |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @cubuspl42 ( |
I believe it comes under accessibility and we closed multiple issue that are related to accessibility as we are not focusing on it right now. cc: @thesahindia |
This looks like a simple bug, and I imagine the solution will be simple as well, so I decreased the bounty |
Upwork job price has been updated to $250 |
A pull request affecting the Enter key's behavior got merged and recently deployed to production. It could provide some insight on why this issue occurred. |
We shouldn't be focusing on this issue ATM. We are migrating to RN-web v0.19 which will allow us to use button components instead of simple View thus this issue won't happen. This change is being tracked on some other issue. Also, this is something that might be facing on almost all pages of the app and we have closed these in the past. I would do the same until we are ready to focus on such issues. |
ProposalPlease re-state the problem that we are trying to solve in this issue.On Contact Methods page after focusing on the back button with the What is the root cause of that problem?Because there is the new contact methods button with What changes do you think we should make in order to solve the problem?This problem must exist everywhere there is a App/src/components/Button/index.js Lines 181 to 185 in a6d2f3e
we need additional logic to check if the focus is not on another element (it should be on the button element or on its parent) so it should be changed to if(document.activeElement.contains(this.ref.current)) this.props.onPress(); POC: https://github.com/Expensify/App/assets/38649957/2a9e55d2-01be-4cdd-b2a0-faaf5000f46d What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Closing per #29132 (comment) |
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: 1.3.79-3
Reproducible in staging?: Yes
Reproducible in production?: Yes
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: @kosmydel
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1696849230849869
Action Performed:
Expected Result:
Should go back to the previous screen
Actual Result:
Opens the "New contact method" screen and immediately closes it.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
bug1.mov
Tab.contact.mp4
MacOS: Desktop
.
Recording.2550.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: