-
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
Request money - Scroll Issue When Navigating Back to the Amount After Selecting a User and Revisiting #34285
Comments
👋 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 @puneetlath ( |
App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 184 to 189 in 82e9c7c
ProposalPlease re-state the problem that we are trying to solve in this issue.the app scrolls to the first unselected item when Navigating Back to the Amount After Selecting a User and Revisiting What is the root cause of that problem?the options component rerenders because the section data changes .. and thus the
and then this line is executed causing the app to scroll on the focused item
What changes do you think we should make in order to solve the problem?we need to add this condition we should add this condition here: if (
this.state.allOptions.length <= this.state.focusedIndex ||
!isNewFocusedIndex ||
(this.state.value === prevState.value && this.props.selectedOptions.length === prevProps.selectedOptions.length)
) {
return;
} |
I wonder if this is also fixed in #34244 |
I don't think so. It's different bug. BaseInvertedFlatList is only used in report screen |
Actually, I can't seem the reproduce the issue on staging anymore |
I am not able to reproduce. This maybe fixed in #34267 |
Screen.Recording.2024-01-11.at.12.35.54.PM.mov |
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: 1.4.24-0
Reproducible in staging?: Y
Reproducible in production?: N
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
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
The page should not scroll by itself when navigating back to the amount after selecting a user and then navigating again to the selected user."
Actual Result:
The page scrolls by itself when navigating back to the amount after selecting a user and then navigating again to the selected user
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6338013_1704910442890.Screen_Recording_2024-01-10_at_9.21.08_AM.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: