webscopeio / react-textarea-autocomplete

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

`minChar` doesn't mind length of the trigger char #166

Closed jukben closed 5 years ago

jukben commented 5 years ago

Current state Try to type @ you will see nothing since you will have to type one more char (default minChar is 1). If you type @@ you will immediately see that item since length of the trigger is not calculated correctly.

Expected state You should type @@a to see the item (should respect minChar property)

Repro: https://codesandbox.io/s/vjx16