-
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
Web - IOU - Numbers added after decimal point are appearing preceding the decimal point #10928
Comments
Triggered auto assignment to @techievivek ( |
@eVoloshchak Is this in any way related to your changes? |
Yes, I think it's a regression from #10028. I'll be able to revert the PR and verify this in ±14 hours. |
@eVoloshchak Any updates on this one? |
Sorry, having trouble with free time Screen.Recording.2022-09-15.at.21.13.34.movI'll look into this on the weekend |
Hmm, I am sure I tested it on that PR. Check the attached web video on that PR. Could this be related to #10147 |
I don't think so, this PR changed only the updateAmountNumberPad method (the one used for on-screen keyboard), while this bug is on |
Now that I think about it more, yes, it could be related to |
I checked it, #10147 was the PR that caused this, thanks @parasharrajat for pointing this out. Solution: updateAmount(text) {
this.setState((prevState) => {
const amount = this.addLeadingZero(this.replaceAllDigits(text, this.props.fromLocaleDigit));
+ const selection = this.getNewSelection(prevState.selection, prevState.amount.length, amount.length);
return this.validateAmount(amount)
- ? {amount: this.stripCommaFromAmount(amount)}
+ ? {amount: this.stripCommaFromAmount(amount), selection}
: prevState;
});
} Screen.Recording.2022-09-18.at.17.19.46.mov |
@techievivek Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Just checked with the team on how we need to handle this. I will put the updates here. Thanks |
I'll work on the RCA |
I just discussed it with the team and since this is a clear case of regression we would want @eVoloshchak to push a PR fixing this. |
If the solution I proposed looks good to you, I can push a PR |
@eVoloshchak yea, let's do it! |
@eVoloshchak Hi, have you pushed a PR fixing it? |
PR is up |
@techievivek Eep! 4 days overdue now. Issues have feelings too... |
@techievivek Still overdue 6 days?! Let's take care of this! |
@techievivek Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it! |
@techievivek 12 days overdue now... This issue's end is nigh! |
This issue has not been updated in over 14 days. @techievivek eroding to Weekly issue. |
Issue not reproducible during KI retests. (First week) |
Issue not reproducible during KI retests. (Second week) |
Issue not reproducible during KI retests. (Third week) @techievivek Are we ok to close this one? |
Sorry, I agree we can close this now. |
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:
Numbers are added after the decimal point
Actual Result:
Numbers are added before the decimal point, user can't add decimal amount
(Same scenario with Request money and Send money as well)
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: v1.1.99-2
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Recording.518.mp4
The text was updated successfully, but these errors were encountered: