-
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
[$1000] iOS 16 - IOU - Request money - The cursor jumps to the first digit for a moment while adding other digits. #11146
Comments
Triggered auto assignment to @thienlnam ( |
Triggered auto assignment to @laurenreidexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Current assignee @thienlnam is eligible for the External assigner, not assigning anyone new. |
Pending proposals |
ProposalAt first, I thought the problem was with the heavy checking we are doing on every click. The solution is to remove the selection prop from [IOUAmountPage.js] or just comment it out until react native resolves its issue( App/src/pages/iou/steps/IOUAmountPage.js Lines 255 to 270 in 6551eb9
I've tested the behavior on android and ios and there is no more flickering. IOS: 194812047-69ff15d4-115b-4921-8ab2-e06ec1f42508.movANDROID: 194812135-35115418-58f6-4827-8344-566e7b619f40.mov |
@Uros787, If you could solve the linked issue facebook/react-native#34695 by submitting a PR then that's a solution. cc: @thienlnam |
@thienlnam Please add your thoughts too. |
Hi @Santhosh-Sellavel , if the prop selection was used somewhere then it would be okay to say that its a workaround |
@eVoloshchak Since you added it, why is |
@Uros787 We've actually been trying to move off of setNativeProps to upgrade to fabric. It actually seems like the bug we're running into here seems to be related to changes we're working on here: #11053 so I am going to put this issue on hold |
Putting a monthly on this as it's on hold |
on Hold! |
Seems like we've closed a lot of related issues - is this bug still occuring @kavimuru? |
@thienlnam Will check with team and update here. |
@thienlnam Issue is still able to reproduce. repro.1411.cursor.mp4 |
Thank you @kavimuru, going to remove the hold on this issue so we can get some proposals |
Issue is back open for proposals! |
Bumped in Slack here |
Would we be open for a proposal where we remove the selection prop? I think I can make it work without the selection prop. Or do we want a upstream RN fix? |
ProposalProblemThere is an extra state update to SolutionWe have to prevent extra state updates if values are equal App/src/pages/iou/steps/IOUAmountPage.js Lines 264 to 269 in 6551eb9
- if (!this.shouldUpdateSelection) {
+ if (!this.shouldUpdateSelection || _.isEqual(e.nativeEvent.selection, this.state.selection)) {
return;
} BeforeSimulator.Screen.Recording.-.iPhone.13.-.2022-11-15.at.19.04.38.mp4AfterSimulator.Screen.Recording.-.iPhone.13.-.2022-11-15.at.19.12.56.mp4 |
@hannojg sounds like a great idea to me |
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:
The cursor must remain on the last digit when adding digits
Actual Result:
The cursor moves to the first digit while adding other digits.
Workaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: v1.2.3-0
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:
Bug5740196_cursor_1909.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause internal team
Slack conversation:
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: