Mike Lehmann
Mike Lehmann

Reputation: 13

Using comma in ng-tags-input value

I am using ng-tags-input with autocomplete. Some of my autocomplete values have commas in them. When a user selects an autocomplete value which has a comma, it splits it into multiple tags on the comma. Is there a way to have this show up as one tag?
For example, my autocomplete shows Mike, Jim and when the user clicks on that, it will split it into two tags: Mike and Jim. I want it to be one tag - Mike, Jim

Thanks.

Upvotes: 1

Views: 1230

Answers (1)

Ali Adravi
Ali Adravi

Reputation: 22743

It is easy, add this attribute in you HTML

add-on-comma="false"

see for more detail

Upvotes: 2

Related Questions