Open shaunith opened 10 years ago
A very similar problem that is messing me up is the following:
@echochristopher, you can fix this by adding
$('.tm-input').keydown(function(e) {
if ((e.which == 13 || e.which == 9)) {
$('.tm-input').typeahead('val', "");
}
});
to your code. When typeahead is present, jQuery's .val() doesn't work to clear the field.
I just ran into the same problem. I added:
.on('typeahead:autocomplete typeahead:selected', function(e, d){
tagsManager.tagsManager('pushTag', d);
songTags.typeahead('val', '');
});
Unfortuantely, you cannot use it in combination with delimiters:[9]
(which adds the hint and the autocompleted value to the tags). My current workaround is to call tagsManager.tagsManager('popTag', songTags.typeahead('val'));
in the autocomplete/selected handler above, but this is also not what I really want.
It would be really great if there would be some kind "either autocomplete or delimiter has been called" event.
When adding a tag which has autocomplete results the tag-manager-hints persist.
Example: I want to add a tag that does not exist, such as the country 'Au' rather than Austria. I enter 'Au' and then enter or tab and the following occurs.