react-tags icon indicating copy to clipboard operation
react-tags copied to clipboard

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

Open herrKlein opened this issue 4 years ago • 2 comments

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

herrKlein avatar Oct 04 '21 08:10 herrKlein

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 avatar Oct 04 '21 09:10 i-like-robots

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 avatar Apr 13 '22 14:04 i-like-robots

Support for an invalid state is available in v7+

i-like-robots avatar Oct 23 '23 08:10 i-like-robots