webscopeio / react-textarea-autocomplete

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

Output function fires a lot #104

Closed guido-visser closed 5 years ago

guido-visser commented 5 years ago

I noticed that the output function is firing a lot. Check out this pen, open the console and start triggering the auto complete: https://codepen.io/dagorbattle/pen/rQYZzj

It looks like 1 change (also a change of the selected item) triggers the output function 14 times. It looks like this is unwanted behavior.

jukben commented 5 years ago

Good observation! Thanks for the repro. This is definitely a bug. I'll take look at it. It's suspicious. 🤔

jukben commented 5 years ago

Fixed, and released as 3.1.4! 🚀