Skip to content

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
@gabrielroodriz
Copy link

Is there anything else we need to finalize this?

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.

4 participants