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

Fix: scrollToIndex out of range: item length 0 but minimum is 1 #253

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RajRohitYadav
Copy link

Error:
scrollToIndex out of range: item length 0 but minimum is 1

How to reproduce?

  1. Have data of enough length such that on search, the list should scroll
  2. Select an item that is not rendered initially when the search is clicked, we have to persist this data for the next re-render
  3. On next re-render, open search, and enter string which does not exist in list

Error: 
scrollToIndex out of range: item length 0 but minimum is 1

How to reproduce?

1. Have data of enough length such that on search, the list should scroll
2. Select an item that is not rendered initially when the search is clicked, we have to persist this data for the next re-render
3. On next re-render, open search, and enter string which does not exist in list
@JDMathew
Copy link

@hoaphantn7604 would it be possible to get some of these PR's merged or open up the package to external maintainers?

gabrielroodriz added a commit to gabrielroodriz/react-native-element-dropdown that referenced this pull request May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants