webscopeio / react-textarea-autocomplete

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

Add prop which close the dropdown when clicking outside #36

Closed jukben closed 6 years ago

jukben commented 6 years ago

Discussion: https://github.com/webscopeio/react-textarea-autocomplete/issues/33

The only way to close the dropdown, is to click Esc? not clicking outside with the mouse? Could be a problem on mobile

That makes sense. I've basically copied GitHub functionality – there is no such a thing as a click outside for close the suggestion list. But I like the idea so far, so let's avoid breaking change and make it as the optional prop. 💪