react-native-autocomplete-dropdown
react-native-autocomplete-dropdown copied to clipboard
closeOnBlur causing issues in Web version
I'm not really sure if you're supporting this for web, but I've had pretty good luck with it the only issue seems to be when I set closeOnBlur to true, the actual value never gets set when you select it from the dropdown. Weirdly it does work if you select it by clicking on the chevron to initiate the dropdown.
Nice repo, thanks for maintaining it and being responsive on the issues. This is by far the best version of an autocomplete dropdown/search I've come across in RN.
I'm having the exact same issue using this package on web. If the closeOnBlur and onBlur props are being used then the core functionality breaks - scrolling the suggestions list or selecting a value from the list doesn't work. As with the comment above, if you open the suggestion list via the chevron then the functionality (scrolling through the suggestions, selecting an item) does work (although the closeOnBlur doesn't work).
onBlur fires, but am unable to close/toggle the suggestion list which is the desired functionality in my case. I've tried to fix it by adapting/reworking some of the useCallbacks in the index.js and using the controller ref but no luck.
Anyone with a fix for this yet? @jomann09 @hrayne I'm currently facing the same issue on web.
This is the only autocomplete dropdown I've found that's pretty much perfect, but this onBlur issue is the only issue that makes it unusable on web. It's reproducible on the readme provided snack link as well, just add a handful more items in the list to create a scrollview, then attempt to scroll that scrollview.