webscopeio / react-textarea-autocomplete

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

Triggers as caret positions or new line #190

Open anika-ahluwalia opened 4 years ago

anika-ahluwalia commented 4 years ago

Hi! Is it possible to have a trigger activated when the caret is at the start or when the user hits enter? Thank you!

jukben commented 4 years ago

Unfortunately, this is not possible with the current implementation. You can trigger the autocomplete only with specific trigger https://github.com/webscopeio/react-textarea-autocomplete#trigger-type.

rohanrana commented 1 year ago

@anika-ahluwalia @jukben i have done new line on selecting from drop-down using new line charcter in output you can use below code

image