boneskull / angular-tags

Pure AngularJS tagging widget with typeahead support courtesy of ui-bootstrap
MIT License
133 stars 31 forks source link

Restricting number of inputs #43

Closed false9striker closed 10 years ago

false9striker commented 10 years ago

How can i restrict the user from entering more than one input/tag. I just want to take only one input.

Appreciate any help! Thanks.

boneskull commented 10 years ago

It doesn't support this behavior. I could envision it having some sort of attribute or option that you pass to limit the number of items, in the general case. In particular, using what's essentially a multiselect widget to select only one thing seems strange, though.

If you need this behavior soon, I encourage you to submit a PR. If someone else also has this requirement, please reopen this issue.