bootstrap-tag
bootstrap-tag copied to clipboard
Typeahead Undefined (and input group format breaking)
Just tried your plugin tonight and I'm not having any luck with it unfortunately. Is it too early for it to work with Bootstrap 3? I am using RC1.
Uncaught TypeError: Object [object Object] has no method 'typeahead' bootstrap-tag.js:90 Uncaught TypeError: Cannot call method 'focus' of undefined bootstrap-tag.js:42 Uncaught TypeError: Cannot call method 'val' of undefined bootstrap-tag.js:163 2 Uncaught TypeError: Cannot call method 'val' of undefined
I am using the JS attachment methods since the form field are added dynamically using jQuery append.
$('#'+value).tag({caseInsensitive : true, allowDuplicates : false, source : []});
Also as a side note: If the input field to be used for tags is part of an input group, then the plugin breaks the group formatting.
Typeahead was removed from Bootstrap 3 in favour of Typeahead.js – which isn't included with Bootstrap 3. With that said, this plugin currently only works with Bootstrap 2.x but I'll do my best to make it Bootstrap 3/Typeahead.js compatible shortly.
Thanks. I'll add Typeahead.js and then run it through debug a couple of times to see if there is anything obvious I could help migrate to 3 for you. The plugin looks good, thanks for creating it.