-
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
Confirm on blur #55
Comments
+1 (thanks for the workaround) |
Definitely +1 for this |
+1 nicely done |
I had a problem when i was using Bootstrap Tagsinput and Typehead.js. By default Tagsinput has property addOnBlur = true, but typehead override this. Resolution is something like this:
In this order. I'm sorry for my english, it's not good :) |
|
This worked in my case solution from @itsprdp here: A better way to clear the typeahead input after adding the tag. self.$input.typeahead('val', ''); Add this line to the end of the add() function after line number 149 in the src file https://github.com/TimSchlechter/bootstrap-tagsinput/blob/master/src/bootstrap-tagsinput.js |
I guess this might not be much of an issue unless you use freeinput.
If a user types in a tag and then clicks outside the input field so that it loses focus, the typed in text is still text. I'd like an option to turn this text into a tag on blur.
An ugly workaround:
$('.myinputfield').tagsinput('add', $ (this).val());
$('.bootstrap-tagsinput input').blur(function() {
$(this).val('');
});
The text was updated successfully, but these errors were encountered: