jQuery.Tagify icon indicating copy to clipboard operation
jQuery.Tagify copied to clipboard

Allows the input of repeat tags, shouldn't

Open Ruxton opened this issue 14 years ago • 3 comments

Adding the tag "Test" and then adding it again results in the tag showing up twice, expected behaviour would be the tag only being in the list once and not having duplicates.

Ruxton avatar Sep 22 '11 02:09 Ruxton

I debated about adding this. What would be the expected user experience?

  1. Show a warning? I don't think this necessitates a warning.
  2. Just delete the duplicate tag? Doesn't seem like the right user experience.

So right now, it relies on server-side to post-process tags, and remove duplicates if desired.

If you have any ideas let me know.

alicial avatar Nov 28 '11 22:11 alicial

Show a notice "Tag already in list" and delete the duplicate tag, the way its working right now is an odd user experience; Alternatively, check tags when they're being added, if they're in the list, don't add them.

In what way would you ever want to Tag something twice with the same tag? how would that even be useful?

Ruxton avatar Nov 29 '11 07:11 Ruxton

I don't think it's up to the plugin to restrict how it can be used. In the majority of cases duplicates may be undesirable, but I certainly cannot anticipate all use cases. In either case, I will add duplicate checking as an option.

alicial avatar Nov 29 '11 22:11 alicial