-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[PAID] [$250] Composer - Console error shows up when pasting the same text in the composer #51466
Comments
Triggered auto assignment to @strepanier03 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Composer - Console error shows up when pasting the same text in the composer What is the root cause of that problem?When we pasting the same text into the composer, the handleOnChangeText function get invoked We use the When pasting the same text the inputType value returns undefined value if (text === target.value && inputType.includes('delete')) {
text = text.slice(0, cursorPosition - 1) + text.slice(cursorPosition);
} The RCA is on the if the condition, when we paste the same text, the if condition will check if the input value doest not change and the inputType value contains delete then we will run the above code Since inputType value is undefined, we did not add What changes do you think we should make in order to solve the problem?We should add if (text === target.value && inputType?.includes('delete')) {
text = text.slice(0, cursorPosition - 1) + text.slice(cursorPosition);
} What alternative solutions did you explore? (Optional) |
@strepanier03 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
|
Job added to Upwork: https://www.upwork.com/jobs/~021851405996383084182 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error shows up when pasting the same text in the composer What is the root cause of that problem?The problem is What changes do you think we should make in order to solve the problem?It's a bad type declear here since
Then change the And add the safe check here
With this change, we can make sure there's not the same case can happen in the feature when we get the input type from What alternative solutions did you explore? (Optional)NA |
Two pretty similar proposals here, but @nkdengineer's proposal includes the important extra detail of fixing up 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @mountiny, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
cc @Skalakid and @BartoszGrajdek |
FYI Expensify/react-native-live-markdown#531 has been merged and released in 0.1.180. |
@nkdengineer Can you raise the App PR when you get a chance? 🙏 |
Will open the App PR tomorrow. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.60-3 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-11-20. 🎊 For reference, here are some details about the assignees on this issue:
|
@jjcoffee @strepanier03 @jjcoffee The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
BugZero Checklist:
Bug classificationSource of bug:
Where bug was reported:
Who reported the bug:
Regression Test ProposalTest:
Do we agree 👍 or 👎 |
I've made the reg test, paid and closed both contracts and updated the title. Thanks again, everyone. |
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: 9.0.54-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): applausetester+kh2010001@applause.expensifail.com
Logs: https://stackoverflow.com/c/expensify/questions/4856
Issue reported by: Applause-Internal team
Action Performed:
Expected Result:
No console error will show up.
Actual Result:
Console error shows up when pasting the same text in the composer
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Bug6645374_1729849788350.error.mp4
Bug6645374_1729849788357!staging.new.expensify.com-1729840230855.txt
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @strepanier03The text was updated successfully, but these errors were encountered: