react-native-select-pro
react-native-select-pro copied to clipboard
Error on search not exist word
Hi, I have a problem in searching, for example we have three item as: [ {label: 'number one', value: 1}, {label: 'number two', value: 2}, {label: 'number three', value: 3} ]
when I search "o" everything is good but when I search "k", I get an error what should I have to do?
Hi @shahabt24
I can't reproduce your problem. Look here https://snack.expo.dev/@irekrog/smelly-beef-jerky-test, everything is ok.
Hi @shahabt24 , can you provide a screenshot of that behaviour along with error message ?
Closing due to inactivity.
Hi, sorry for delay.
This is the way I got error:
1: search three
2: select the third option
3: close the dropdown
4: focus on input
5: start to delete characters
6: you will get error
<Select
ref={languageRef}
searchable={true}
clearable={true}
animated={false}
scrollToSelectedOption={true}
options={data}
onSelect={onLanguageItemPressed}/>
And also this can be done by scrollToSelectedOption={false}