-
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] Request - App displays extra line below description when we use enter to save the description #28181
Comments
Triggered auto assignment to @adelekennedy ( |
Job added to Upwork: https://www.upwork.com/jobs/~016a43fd5e9a09f472 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @alexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
Proposal Please re-state the issue What is the root cause of the problem? What changes do you think should be made to fix this problem? <EditRequestDescriptionPage
defaultDescription={transactionDescription}
onSubmit={(transactionChanges) => {
// In case the comment hasn't been changed, do not make the API request.
if (transactionChanges.comment.trim() === transactionDescription) {
Navigation.dismissModal();
return;
}
editMoneyRequest({comment: transactionChanges.comment.trim.()replace(/\n$/, '')}); // add code here
}}
/> P.S: depends on the scope, you can also remove the What other alternative options did you explore? (Optional) |
📣 @micahelchan623! 📣
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Upon pressing enter on the description, it enters a new line while submitting the form. What is the root cause of that problem?The root cause is we are not preventing th default functionality of enter button. We have just added a new functionality that enter button should do this over here. App/src/components/FormSubmit/index.js Lines 29 to 33 in e18ec42
What changes do you think we should make in order to solve the problem?The only change we have to do it to prevent the default functionality of the enter button which can be done easily by if (tagName === 'TEXTAREA' && lodashGet(event, 'target.dataset.submitOnEnter', 'false') === 'true') {
event.preventDefault();
onSubmit();
return;
} What alternative solutions did you explore? (Optional)N/A |
Will review in couple of hours |
@saranshbalyan-1234 's proposal here #28181 (comment) looks good and works well. 🎀 👀 🎀 |
Triggered auto assignment to @luacmartins, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Not overdue melvin. People would be just back from weekend. Anyways Pending review on @luacmartins |
@abdulrahuman5196 PR is ready to be reviewed. Please check |
Friendly bump to process payment for this issue |
Not a regression. Seems we found this issue now only.
Minor bug and wouldn't be beneficial to add regression tests. |
@adelekennedy Seems melvin didn't update this issue properly. Can we process the payments for this issue? |
Thank you for the bump! Payouts due:Issue Reporter: $50 @dhanashree-sawant Eligible for 50% Y Upwork job is here. |
@adelekennedy Merge time is the one to consider for urgency bonus. This PR was merged in almost a day, so eligible for the bonus. Applied in upwork. |
Not able to apply on Upwork, please send an offer |
Hi @adelekennedy, on upwork, it says that offer is not available. can you resend it once? |
Hi @adelekennedy please have a look |
reposted the job here |
accepted |
@adelekennedy friendly bump for payment |
Accepted invite @adelekennedy |
Gentle ping @adelekennedy |
@abdulrahuman5196 On my end Upwork shows this contract as being paid and completed (with the bonus included) |
@adelekennedy Sorry. I was looking at the old upwork contract. Got paid thank you. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
App should not add new line on enter in description as enter is used to save the description
Actual Result:
App adds new line in description and also triggers save when we open description and use enter to save the description
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.74.0
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
Notes/Photos/Videos: Any additional supporting documentation
Enter.to.save.description.add.new.line.mac.chrome.desktop.mov
Recording.4763.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695464573868509
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: