react-native-paper-form-builder icon indicating copy to clipboard operation
react-native-paper-form-builder copied to clipboard

Autocomplete unselect

Open rkostrab opened this issue 2 years ago • 0 comments

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

rkostrab avatar Mar 10 '22 10:03 rkostrab