Repository navigation
Conversation
|
@jackspiva I am using a similar approach where if the user scrolls to the bottom of the drop down, it fetches more data from the server. But the problem is the scroll bar goes to top instead staying at the bottom. I know it's because the react component re renders on state change. But is there a way to achieve this functionality. I tried lot of different ways but no luck. Any help will be greatly appreciated! Thanks in advance! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds an optional
onMenuScrollToBottomOffsetprop that will causeonMenuScrollToBottomto fire a certain amount of pixels before the user scrolls to the bottom fo the menu.I think this makes the
onMenuScrollToBottomPropway more useful. I am currently using this change in a fork ofreact-selectin a work project.My use case is that I am using
onMenuScrollToBottomto load more options for the select menu. Without an offset, the user has to hit the bottom of the menu and then wait for more options to load. However, with an offset, the options can be loaded before they reach the bottom, which is a lot smoother.Addresses #1530.