Closed mikalai-sauchanka closed 9 months ago
Thanks for sharing the demo @mikalai-sauchanka
When the allowNew
prop is enabled a new tag can only be created when selecting the new tag option from the listbox. In the code you provided the new tag option remains selected after adding the first tag. If you'd like to reset the listbox state after adding a tag you can use the collapseOnSelect
option.
DelimeterKeys doesn't work until at least one tag has been added by clicking the dropdown. Here's an example: https://codesandbox.io/p/sandbox/react-tag-autocomplete-6l43qm?file=%2Fsrc%2FApp.js