zubairpaizer / react-native-searchable-dropdown

Searchable Dropdown
148 stars 98 forks source link

onItemSelect is not called #91

Open Dubey-Shivani opened 1 year ago

Dubey-Shivani commented 1 year ago

The list gets closed but onItemSelect is not being called.

jackdw22 commented 1 year ago

having this problem as well

Dubey-Shivani commented 1 year ago

Any solution?

muchirasamwel commented 1 year ago

Does anyone have a workaround for this?

FaggioniHQ commented 1 year ago

Same issue here, any workaround for this issue?

FaggioniHQ commented 1 year ago

Hello There,

In my case, the issue was related to the fact that the SearchableDropdown component was inside a ScrollView.

So, to fix the issue, I added keyboardShouldPersistTaps={'handled'} on the ScrollView component. You can set the prop as you see fit.

Hope it helps