-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix typeahead when using Bootstrap 3 #73
Fix typeahead when using Bootstrap 3 #73
Conversation
Tim please merge this commit, i tried and is working!! 💯 |
Thanks, not sure if he is still active.. |
I can not setup it with new typeahead too, any example how to make it work? |
$('#tags').tagsinput({ |
Are your commits merged with release? Or I have to manualy download your diffs? If I put the code you mention it produces the following error in the console:
in bootstrap-tagsinput.js on line 434 |
it hasn't been merged yet so you have to download the changes manually or clone my repo |
Ok, thanks for your advises, but it's not working properly, I'm getting to work it through copy all resources and setup it like it is in this example page: view-source:http://timschlechter.github.io/bootstrap-tagsinput/examples/bootstrap3/ |
can you show me your code? |
I found this issue and figured it's related to a problem I'm having: Reading this thread I understand that the suggested change re-adds typeahead functionality to bootstrap-tagsinput under bootstrap-3, without the need for external dependencies (i.e. without fetching typeahead.js from http://twitter.github.io/typeahead.js/ into the project ) Is my understanding correct? |
I cannot get this working. I took the source code directly from the updated docs you created. |
I worked on integration the latest typeahead.js in the examples pages so they should be working again. |
I modified the solution @wardpeet wrote, to make it work with the current typeahead.js API and merged this PR. Very nice work, thank you very much! |
thanks for merging :) |
Please Can any one share the new Merged File |
I added a typeahead option that works with the new typeahead library. You can use it the same way as typeahead or a simpler way as described in the examples.
$('input').tagsinput({
typeahead: {
remote: 'assets/query.json.html?q=%QUERY'
},
itemValue: 'value',
itemText: 'text'
});