webscopeio / react-textarea-autocomplete

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

Selection resets after new props are passed #78

Closed michauzo closed 6 years ago

michauzo commented 6 years ago

If there is any change to the container component while the autocomplete dropdown is opened the selected item is reset to the first in the list. It happens even if the list did not change.

michauzo commented 6 years ago

I have created a pull request #79 that contains a fix for this issue.

jukben commented 6 years ago

Deployed as https://github.com/webscopeio/react-textarea-autocomplete/releases/tag/v2.3.1 🚀