Skip to content
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

useVirtualList 与 useInfiniteScroll 结合使用时 调用 reload VirtualList 没有自动滚动到 顶部 #2492

Closed
Jungley8 opened this issue Mar 5, 2024 · 4 comments
Labels
🤔 Need Reproduce We cannot reproduce your problem

Comments

@Jungley8
Copy link

Jungley8 commented Mar 5, 2024

image

useVirtualList 与 useInfiniteScroll 结合使用时,如果存在 sticky 元素

滚动几页后, 搜索后 调用 reload 数据减少到 1-2条时, VirtualList 没有自动滚动到 顶部。

手动 Call scrollTo 也无效。

@liuyib
Copy link
Collaborator

liuyib commented Mar 5, 2024

麻烦提供个可复现的在线 demo

@crazylxr crazylxr added the 🤔 Need Reproduce We cannot reproduce your problem label Mar 8, 2024
Copy link

github-actions bot commented Mar 8, 2024

Hello @Jungley8. Please provide a online reproduction by forking this link https://codesandbox.io/s/ok2fe or a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 3 days.

你好 @Jungley8, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。3 天内未跟进此 issue 将会被自动关闭。

@Jungley8
Copy link
Author

Jungley8 commented Mar 8, 2024

useVirtualList + useInfiniteScroll demo

找到问题了,demo 有说明。 3q

@Jungley8 Jungley8 closed this as completed Mar 8, 2024
@CassielLee
Copy link

useVirtualList + useInfiniteScroll demo

找到问题了,demo 有说明。 3q

你好,方便问下你useVirtualList + useInfiniteScroll是怎么结合用的吗?我最近也需要结合用,但是发现会无限出发loadMore,不知道是我哪里用的不对

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Need Reproduce We cannot reproduce your problem
Projects
None yet
Development

No branches or pull requests

4 participants