react-native-paper-form-builder
react-native-paper-form-builder copied to clipboard
Autocomplete unselect
Hi, how to achieve unselect operation in autocomplete? I've already tried to implement custom autocomplete where I am callingfield.onChange(null)
which sets form-value correctly but the textinput value keeps showing the unchanged label from options.
Edit 1:
Tried also field.ref.current.clear()
from custom autocomplete component but getting undefined function error
Edit 2:
field.ref.clear()
seems to work but this method just makes the InputText empty without any placeholder and it keeps stuck in this state - I mean picking up another option does not change value in TextInput.
Thank you