Skip to content
This repository has been archived by the owner on Nov 22, 2021. It is now read-only.

Commit

Permalink
Disable adding tags when max-tags has been reached
Browse files Browse the repository at this point in the history
Issue #225
Input to add more tags is hidden when max-tags limit has been reached
  • Loading branch information
matteoferigo authored Jul 21, 2016
1 parent af9feb7 commit d0f00ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/tags-input.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
ng-trim="false"
ng-class="{'invalid-tag': newTag.invalid}"
ng-disabled="disabled"
ng-hide="tagList.items.length >= options.maxTags"
ti-bind-attrs="{type: options.type, placeholder: options.placeholder, tabindex: options.tabindex, spellcheck: options.spellcheck}"
ti-autosize>
</div>
</div>
</div>

0 comments on commit d0f00ee

Please sign in to comment.