jQuery.Tagify
jQuery.Tagify copied to clipboard
Allows the input of repeat tags, shouldn't
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.
I debated about adding this. What would be the expected user experience?
- Show a warning? I don't think this necessitates a warning.
- 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.
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?
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.