It looks like if you specify both data-role="tagsinput"
and use $('#idInputWhat').tagsinput('add', 'vino');
then it gives that error. Try removing the data-role
attribute, and use only the explicit .tagsinput()
.
I'd consider this a bug in the tagsinput plugin.
Seems to be confirmed here; https://github.com/TimSchlechter/bootstrap-tagsinput/issues/42