SyntaxUI / syntaxui

Get free access to pre-built, Tailwind CSS-powered components, animations and effects - brought to life using Framer Motion. Just copy, paste and you're ready to go!
https://syntaxui.com
MIT License
806 stars 52 forks source link

[BUG]: Duplicate Tags in TagInput Component #246

Closed maniravirala closed 3 months ago

maniravirala commented 3 months ago

Issue: Duplicate Tags in TagInput Component

Description

The TagInput component currently allows duplicate tags to be added. When a user enters the same tag multiple times, it is added to the list each time, resulting in duplicate entries. This can lead to a poor user experience and data redundancy.

Steps to Reproduce

  1. Open the TagInput component.
  2. Type a tag (e.g., tag1) and press Enter.
  3. Type the same tag (e.g., tag1) again and press Enter.
  4. Observe that the tag is added multiple times.