aehlke / tag-it

A jQuery UI plugin to handle multi-tag fields as well as tag suggestions/autocomplete.
http://aehlke.github.com/tag-it/
MIT License
2.48k stars 825 forks source link

no such method 'removeTagByName' for tagit widget instance #392

Closed sebasijan closed 7 years ago

sebasijan commented 7 years ago

I tried implementing some 'click-to-remove' tags on my site, and noticed this error when calling

$('#methodTags').tagit('removeTagByName', inp);

Error: no such method 'removeTagByName' for tagit widget instance

After checking the example page, under Methods, I can see the error is also occurring here.

I can add a tag by name just fine, but removing throws the above error.

sebasijan commented 7 years ago

Looks like the method is actually called removeTagByLabel