maxkordiyak / react-native-dropdown-autocomplete

Autocomplete input with dropdown modal component for React native. Useful for pages with multiple autocomplete's.
MIT License
100 stars 51 forks source link

onBlur is called before onPress on Menuitem #39

Open toggm opened 4 years ago

toggm commented 4 years ago

I installed the latest react-native-dropdown-autocomplete package and used the component as documented. When trying to select an item in the dropdown, the onBlur on the TextInput component gets called before the onPress on the Button component on Android. This closes the dropdown without selecting any value.

If I disable the this.dropdown.current.close(); in the handleBlur the items gets selected correctly but of course navigating out of the TextInput component without selecting a value will not close the dropdown.