webscopeio / react-textarea-autocomplete

📝 React component implements configurable GitHub's like textarea autocomplete.
MIT License
454 stars 80 forks source link

Clear Value after using onItemSelected #240

Closed maahokgit closed 1 year ago

maahokgit commented 1 year ago

Is there a way to clear the text area after using onItemSelected?

jukben commented 1 year ago

I think you can use onItemSelected prop and then modify the value of the textarea via ref for example.

maahokgit commented 1 year ago

Yea I tried that, looks like it has to do with onChange.

maahokgit commented 1 year ago

Figured out a round able way to do it.