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

OnBlur #262

Open
ASPatelG opened this issue Mar 15, 2023 · 2 comments
Open

OnBlur #262

ASPatelG opened this issue Mar 15, 2023 · 2 comments

Comments

@ASPatelG
Copy link

ASPatelG commented Mar 15, 2023

if i am adding the on blur props to close suggestion list, then it's not retuning the selected item it means autocomplete not working on select from suggestion list because the onblur called firstly instead of call the listitem of onPress function.

@vendeeshwaranc
Copy link

Try this plugin https://www.npmjs.com/package/react-native-select-dropdown-search

@alvani
Copy link

alvani commented Aug 12, 2023

I was having similar issue. The onPress handler on list item didn't get called. I've solved it by adding keyboardShouldPersistTaps: 'handled' to flatListProps.

flatListProps={{
    renderItem: /*render item code*/,
    keyboardShouldPersistTaps: 'handled'
}}

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

No branches or pull requests

3 participants