-
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-02-07] [HOLD for payment 2024-02-05] IOU - CMD+Enter command does not work when selecting currency #35235
Comments
👋 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:
|
Triggered auto assignment to @cristipaval ( |
We think that this bug might be related to #vip-bills |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
What alternative solutions did you explore? (Optional)
|
The offending PR is this migration: #34794 cc: @allroundexperts |
@paultsimura Thanks for pointing out. Do you mind giving a short explanation of why this is the case? |
I'll try 🙂 Here, we're now setting the default value for
Then, here we use the App/src/components/SelectionList/BaseSelectionList.tsx Lines 386 to 391 in e92ffbf
But since
Now pressing CMD+Enter does not trigger |
@filip-solecki This should be a quick fix. Can you raise a PR? |
ProposalPlease re-state the problem that we are trying to solve in this issue.The CMD+Enter does nothing on selection lists with no What is the root cause of that problem?The offending PR is this migration: #34794 We're now setting the default value for
Then, here we use the App/src/components/SelectionList/BaseSelectionList.tsx Lines 386 to 391 in e92ffbf
But since And this shortcut overlaps with this line:
Now pressing What changes do you think we should make in order to solve the problem?Instead of setting the default value to if (!!onConfirm) {
/** Calls confirm action when pressing CTRL (CMD) + Enter */
useKeyboardShortcut(CONST.KEYBOARD_SHORTCUTS.CTRL_ENTER, onConfirm, {
captureOnInputs: true,
shouldBubble: !flattenedSections.allOptions[focusedIndex],
isActive: !disableKeyboardShortcuts && isFocused,
});
} App/src/components/SelectionList/BaseSelectionList.tsx Lines 386 to 391 in e92ffbf
What alternative solutions did you explore? (Optional) |
This violates the rule of the hooks. |
@allroundexperts - sure, I am preparing PR |
@allroundexperts - PR created, right now onConfirm function may be undefined and if it is code runs selectFocusedOption function which select focused element |
Reviewing in a moment. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.32-5 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-02-05. 🎊 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.33-5 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-02-07. 🎊 |
Skipping the payment summary for this issue since all the assignees are employees or vendors. If this is incorrect, please manually add the payment summary SO. |
This is a regression fixed and reviewed by the contributors who worked on the original PR. No payment due here. |
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: 1.4.32-2
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:
The CMD+Enter command should close the currency toggle, returning the user to the money amount entry page
Actual Result:
CMD+Enter command does not work when selecting currency
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6355597_1706262292979.Recording__1201.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: