i-like-robots / react-tags

⚛️ Legacy repo for the fantastically simple tagging component for your React projects (legacy repo)
http://i-like-robots.github.io/react-tags
MIT License
457 stars 171 forks source link

In the online demo you can't create a tag with spaces #254

Closed herrKlein closed 11 months ago

herrKlein commented 2 years ago

The online demo does not allow tags with space to be created, although the option is shown http://i-like-robots.github.io/react-tags/

Expected behaviour

If it should be possible to create a tag with space, it should be created. If not, user should be warned ( or at least not show the option, 'create tag:' )

Current behaviour

Option create tag is show, does nothing

Steps to Reproduce

Steps to reproduce the problem:

  1. http://i-like-robots.github.io/react-tags/
  2. go to custom tag input
  3. enter text like 'abc 123'
  4. press create tag option
  5. no feedback

    • OS: OSX
    • Browser: chrome 94
    • Version of the component: online version
    • React version: online version
i-like-robots commented 2 years ago

I've been reviewing the accessibility of this component recently and I am working on a feedback mechanism, I believe this would fit nicely within that piece of work.

i-like-robots commented 2 years ago

The next major version of the component now supports displaying an invalid state with relevant attributes for associating the component with error messages.

i-like-robots commented 11 months ago

Support for an invalid state is available in v7+