-
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
[HOLD for payment 2024-09-23] [Search v2.3] - List scrolls back to the top after selecting saved search at the bottom of list #49218
Comments
Triggered auto assignment to @Beamanator ( |
Triggered auto assignment to @anmurali ( |
👋 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:
|
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
const route = useRoute();
const scrollViewRef = useRef<RNScrollView>(null);
const {saveScrollOffset, getScrollOffset} = useContext(ScrollOffsetContext);
const onScroll = useCallback<NonNullable<ScrollViewProps['onScroll']>>(
(e) => {
// If the layout measurement is 0, it means the flashlist is not displayed but the onScroll may be triggered with offset value 0.
// We should ignore this case.
if (e.nativeEvent.layoutMeasurement.height === 0) {
return;
}
saveScrollOffset(route, e.nativeEvent.contentOffset.y);
},
[route, saveScrollOffset],
);
useLayoutEffect(() => {
const scrollOffset = getScrollOffset(route);
if (!scrollOffset || !scrollViewRef.current) {
return;
}
scrollViewRef.current.scrollTo({y: scrollOffset, animated: false});
}, [getScrollOffset, route]);
<ScrollView
onScroll={onScroll}
ref={scrollViewRef}
>
and add it to: App/src/pages/Search/SearchTypeMenu.tsx Line 227 in 0c618ac
The detail style can be add later. What alternative solutions did you explore? (Optional) |
@dominictb are you available to work on a fix? |
@luacmartins Yes. I can work on it |
@dominictb how's the PR coming along? |
@luacmartins I drafted the PR. I am testing a few test cases. |
|
Waiting on @dominictb |
@anmurali, @lakchote, @luacmartins, @rushatgabhane, @dominictb Huh... This is 4 days overdue. Who can take care of this? |
Waiting on payment |
@anmurali, @lakchote, @luacmartins, @rushatgabhane, @dominictb Still overdue 6 days?! Let's take care of this! |
@dominictb could you please give us your Upwork profile in order to pay you? |
@anmurali, @lakchote, @luacmartins, @rushatgabhane, @dominictb 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
bump @dominictb for your Upwork profile. |
@lakchote Sorry I missed this, mine is https://www.upwork.com/freelancers/~01f70bed1934fd35d5 |
@anmurali, @lakchote, @luacmartins, @rushatgabhane, @dominictb 12 days overdue. Walking. Toward. The. Light... |
@dominictb - offer is here |
Accepted, thank you @anmurali |
Not overdue. Should we close this? |
Seems like we're all set. Gonna close the issue, please reopen if needed. |
@anmurali @lakchote @luacmartins Be sure to fill out the Contact List! |
@luacmartins @lakchote My contract was not paid by @anmurali yet, please help to reopen |
Sorry, I thought that had been handled based on this comment. My bad 😅 |
Bump for payment @anmurali |
friendly bump @anmurali ^ |
Paid. Sorry, I thought I already did that as well. |
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.35-0
Reproducible in staging?: Y
Reproducible in production?: N/A - new feature, doesn't exist in prod
Email or phone of affected tester (no customers): applausetester+kh010901@applause.expensifail.com
Issue reported by: Applause Internal Team
Action Performed:
Precondition:
Expected Result:
In Step 4, the Saved title should remain on top when the list is scrolled down.
In Step 6, the list will not scroll up after selecting the search at the bottom of the list, or the selected search will move to the top.
Actual Result:
In Step 4, the Saved title is also scrolled and hidden.
In Step 6, the list scrolls up and the selected search is hidden.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6603231_1726300553520.20240914_155008.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: