-
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
[$500] Expense - Unable to save Merchant by hitting Enter in confirmation page #37294
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0173bf7e04af9fbaa2 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
👋 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 @grgia ( |
We think that this bug might be related to #wave5-free-submitters |
This comment was marked as outdated.
This comment was marked as outdated.
ProposalPlease re-state the problem that we are trying to solve in this issue.The Merchant is not saved when hitting Enter. What is the root cause of that problem?
App/src/components/Form/FormWrapper.tsx Line 60 in cfa0ae3
What changes do you think we should make in order to solve the problem?Pass
What alternative solutions did you explore? (Optional)NA |
Please link the offended PR as it is not reproducible on production. |
I don't think this needs to block deploy |
ProposalPlease re-state the problem that we are trying to solve in this issue.Expense - Unable to save Merchant by hitting Enter in confirmation page What is the root cause of that problem?The pr is - #31606 What changes do you think we should make in order to solve the problem?We shall unsubscribe to
ChangesuseEffect(() => {
// Unregister the shortcut before registering a new one to avoid lingering shortcut listener
enterSubscription.current();
if (!disableEnterShortCut && isFocused) {
subscribeToEnterShortcut();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [disableEnterShortCut]); App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 379 to 387 in 04644d8
ChangesuseEffect(() => {
if (isFocused) {
subscribeToEnterShortcut();
subscribeToCtrlEnterShortcut();
} else {
unSubscribeFromKeyboardShortcut();
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [isFocused]);
result - Screen.Recording.2024-02-28.at.2.32.24.AM.movWhat alternative solutions did you explore? (Optional) |
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. |
Update: re-refactoring is ready to be tested, it fixes all the regression issues I was aware of. Please test it (especially the tags, because I could not yet replicate the scenario on my site). |
I take it we can close this one out @Pujan92 ? |
Offending PR was reverted - #31606 (comment) |
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: v1.4.44-0
Reproducible in staging?: y
Reproducible in production?: n
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
The Merchant will be saved when hitting Enter.
Actual Result:
The Merchant is not saved when hitting Enter.
This issue also occurs with Description.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6393850_1709032184834.20240227_133522.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: