-
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
[HOLD for payment 2024-05-13] [$250] Web - Pressing on keyboard enter key on notification option of a room takes back two steps #40551
Comments
Triggered auto assignment to @kevinksullivan ( |
Triggered auto assignment to @mountiny ( |
👋 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:
|
@mountiny FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors. |
We think this bug might be related to #vip-vsb |
Job added to Upwork: https://www.upwork.com/jobs/~01889a2544214bb02d |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Pressing on keyboard enter key on notification option of a room takes back two steps What is the root cause of that problem?We have a double event raised when pressing the enter key at BaseListItem, and keyboard shortcuts at this lines What changes do you think we should make in order to solve the problem?Due to at BaseSelectionList we have handle keyboard shortcut to select item, so we should prevent press event at this line when submit by keyboard by adding props ref={pressableRef}
onPress={(e) => {
if (shouldPreventEnterKeySubmit && e instanceof KeyboardEvent && e.key === 'Enter') {
return;
}
onSelectRow(item);
}} Finally set What alternative solutions did you explore? (Optional)Instead of add props to BaseListItem, we can check condition and pass props |
Dupe of #40507. |
Since we have a better proposal here, we can close the other. |
@suneox Were you able to figure out the PR which caused this issue? |
Sure, Let me find |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
@allroundexperts I think it looks like a regression from this PR when the fix uses a tab key to focus an item, but the owner isn't aware the code base also has a shortcut key to select an item with the condition App/src/components/SelectionList/BaseSelectionList.tsx Lines 486 to 491 in 9a115b6
So We have 2 places trigger |
PR: #40642 |
Hi @allroundexperts could you please check my commit your PR was missing set |
Checking 👀 |
App/src/pages/settings/Report/NotificationPreferencePage.tsx Lines 41 to 45 in 4dc0d91
I'd like to explain for my commit change At page And we can use CONST.KEYBOARD_SHORTCUTS.ENTER.shortcutKey instead of string 'Enter' |
Is this limited to |
Yes, maybe we should apply for all lists but we don't have any context for other list items. So I think we can go ahead with this list first. But we have to set |
@suneox Makes sense. Let's fix the radio item list first. Updated the PR. |
Will update the screen recordings in the next few mins as well. |
Could you please check your merge change? It's mixing with another commit and the code change also update |
@suneox Updated and added screen recordings. Let's take this convo to the PR. |
@suneox I believe you cannot review a you are not C+, but you can leave comments with the checklist and approve by comment |
The PR has been deployed to production 3 days ago, I think we should update hold for payment |
Hi @mountiny This issue has been deployed to production over 1 week, so I think we should process payment. Thank you! |
Friendly bump @mountiny |
@mountiny could you please process payment for this issue? |
Payment summary:
|
$250 approved for @allroundexperts |
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.4.63-0
Reproducible in staging?: y
Reproducible in production?: no
If this was caught during regression testing, add the test name, ID and link from TestRail: EXP around https://expensify.testrail.io/index.php?/tests/view/4494233
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:
App should navigate to Settings page
Actual Result:
App navigates to Room details page
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6454735_1713521652242.bandicam_2024-04-19_13-08-56-915.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @kevinksullivanThe text was updated successfully, but these errors were encountered: