Closed aleinnocenzi closed 2 years ago
@aleinnocenzi has your issue been solved. Facing the same issue
I have the same issue, have not found a workaround yet.
There is a double-initialization. Anything with a data-role of 'tagsinput' will get constructed, then you are calling it a second time. The solution is to remove the data-role since you are initializing it manually.
I'm using bootstrap-tagsinput with typeahead with the following code:
`
The typeahead works correctly but if I inspect the html generated I see this:
As you can see the div with class bootstrap-tagsinput is generated twice and this causes a bad view in the page:
What am I doing wrong? Thanks.
EDIT: In the javascript I use tagsinput on $(".bootstrap-tagsinput input") selector because if I use only $("#inputTags"), where "inputTags" is the id of my input element, the typeahead doesn't work