-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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] Pressing space in the participant's split amount input goes to user's profile page. #48605
Comments
Triggered auto assignment to @garrettmknight ( |
Edited by proposal-police: This proposal was edited at 2024-09-05 05:07:41 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing space in split amount input goes to user's profile What is the root cause of that problem?A When we press the spacebar in the amount tex input, the keyboard event will propagate to the parent What changes do you think we should make in order to solve the problem?The problem here are:
Fortunately, we can take advantage of
if (e && 'key' in e && e.key === ' ') {
isSpaceKeyDownOnInputRef.current = true;
}
App/src/components/SelectionList/BaseListItem.tsx Lines 83 to 85 in 651c9e0
if (shouldPreventSpaceKeySubmit && isSpaceKeyDownOnInputRef.current) {
isSpaceKeyDownOnInputRef.current = false;
return;
}
|
Job added to Upwork: https://www.upwork.com/jobs/~021831765734761522413 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing space in split amount input goes to user's profile What is the root cause of that problem?when pressing space key while in split amount input ( What changes do you think we should make in order to solve the problem?we can simply ignore the space key while we are in split amount input ( to this function App/src/components/MoneyRequestAmountInput.tsx Lines 245 to 257 in 156b8b0
|
📣 @M00rish! 📣
|
Edited by proposal-police: This proposal was edited at 2024-09-07 04:48:59 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing space in the participant's split amount input goes to user's profile page. What is the root cause of that problem?The pressable element will role App/src/components/SelectionList/BaseListItem.tsx Lines 78 to 87 in 7814fbc
What changes do you think we should make in order to solve the problem?
OPTIONAL: We can call What alternative solutions did you explore? (Optional)We can change the role to ResultMonosnap.screencast.2024-09-06.10-57-18.mp4 |
i'll be OOO next week so if we get proposals ready please ask for another engineer to review. cc @getusha |
@garrettmknight, @bondydaa, @getusha Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Reviewing |
@garrettmknight i don't think this is worth fixing, entering a space on a number input is unlikely to any user. |
I can get behind that. |
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.29-6
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: @jayeshmangwani
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1725484726223549
Action Performed:
Action Performed:
Expected Result:
Pressing space should have done nothing, just like any other non-number key press
Actual Result:
Pressing space in split amount input goes to user's profile
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
bug-space.mov
Recording.515.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @getushaThe text was updated successfully, but these errors were encountered: