i-like-robots / react-tag-autocomplete

⚛️ A simple, accessible, tagging component ready to drop into your React projects (new repo)
https://i-like-robots.github.io/react-tag-autocomplete/
ISC License
178 stars 12 forks source link

v7 beta – adding tags by click or keyboard arrow up/down #39

Closed jremen closed 1 year ago

jremen commented 1 year ago

@i-like-robots In current v7 beta I'm not able to select the option in the listbox by clicking on it or by using up/down key on keyboard and hit enter to add it to the list. It always sets the first item in the suggestions. Even API listobox.activeOption shows same first option selected when clicking on it. Also, "selected" prop with selected state array removes previously added tags when I try to add another one

Any solutions?

jremen commented 1 year ago

my fault, I used Ids instead of values from previous version