-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Tagging: handling invalid and/or multiple entries by the tagging function #485
Comments
Regarding the second point: couldn't you solve that by using I'm all for the main issue here, namely adding some sort of tag validation. |
Regarding |
@darrudi we have the exact same use case with emails:
Would you mind sharing how you customized the plugin to achieve this? EDIT: Never mind, I ended up using the https://github.com/mbenford/ngTagsInput plugin, which was specifically built for tagging. |
@vdsabev: sorry for my delay. Anyway, I guess you'd be better off with ngTagsInput as my customizations were somehow hackish. |
+1 for this feature. It would be really really useful to be able return a null with the tagging function when you don't want to add a not-valid field, it's quite a common case |
Feature Request regarding free tagging:
The user may enter a string which is considered invalid by the tagging function. So the tagging function should be able to return null upon receiving the input. I did this but a bunch of errors surfaced. My tagging function (an email client):
Also the user may copy-paste a string (e.g. a list of emails separated by semicolons) into the ui-select and the tagging function may decide there are more than one item in the input. So I guess its a good idea to have the tagging function return an array (zero or more items) instead of a string.
The text was updated successfully, but these errors were encountered: