webscopeio / react-textarea-autocomplete

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

Prevent output #132

Closed saumitra171 closed 5 years ago

saumitra171 commented 5 years ago

Is it possible to prevent outputting to textarea for certain items ?

My use case is, I want to show a popup on selection of certain types of items and then when the popup is dismissed I want to update the textarea based on user action.

jukben commented 5 years ago

I'm not sure if I can understand this part

then when the popup is dismissed I want to update the textarea based on user action.

Do you want to take action based on dismissed popup? (not selected item?)

Could you please create a codepen (fork of this https://codepen.io/jukben/pen/bYZqvR) with steps to reproduce?

saumitra171 commented 5 years ago

Please checkout the comments https://codepen.io/smtrd/pen/WPyjag?editors=0010

jukben commented 5 years ago

Hey, I think it's a valid point and in this case we should support returning null. I will try to hack something so stay tuned!

jukben commented 5 years ago

Deployed in 4.3.0 🚀