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

Scroll position resets when loading additional data with onMenuScrollToBottom #5941

Open
nhathoagn opened this issue Aug 7, 2024 · 0 comments
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet

Comments

@nhathoagn
Copy link

Description: When using ReactSelect with the onMenuScrollToBottom feature to load additional data, the scroll position is reset to the top of the list each time new data is added. This creates a poor user experience, as users have to scroll back from the beginning instead of continuing from their current scroll position.

Expected behavior: When loading additional data, the scroll position should be maintained, allowing users to continue viewing newly added items without having to scroll back from the top of the list.

Steps to reproduce:

Use ReactSelect with onMenuScrollToBottom to load more data.
Scroll to the bottom of the list to trigger additional loading.
Observe the scroll position resetting to the top of the list when new data is added.
Screenshot 2024-08-08 at 00 01 02
Screenshot 2024-08-08 at 00 00 31
Screenshot 2024-08-08 at 00 00 12

@nhathoagn nhathoagn added the issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet label Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/bug-unconfirmed Issues that describe a bug that hasn't been confirmed by a maintainer yet
Projects
None yet
Development

No branches or pull requests

1 participant