react-native-autocomplete-dropdown icon indicating copy to clipboard operation
react-native-autocomplete-dropdown copied to clipboard

Don't show suggestionList until some text is written

Open dantecarlo opened this issue 2 years ago • 1 comments

How can I hide the suggestionList if the input text length is < than 3 for example.

I already try using onFocus prop with the useRef like this

const handleOnFocus = () => {
    dropdownController.current?.close();
 };

but it didn't work

dantecarlo avatar Aug 03 '22 00:08 dantecarlo

Hi! You could set the dataSet only when entering > 3. Have you checked remote dataSet examples? E.g. https://github.com/onmotion/react-native-autocomplete-dropdown/blob/main/example/components/RemoteDataSetExample2.js

onmotion avatar Aug 03 '22 03:08 onmotion