-
Notifications
You must be signed in to change notification settings - Fork 440
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
Tagifying should not happen at blur. #63
Comments
ok, I will make such configuration. I was certain this is what everybody wants, to have the tag created on |
Yep, you are correct, that normally the tag should be created on I have created my own "datalist" for the field. I need different type of selections in the datalist. Suggested tags (what already exists in "real" datalist) and links. Special case -> special logic ;) |
See |
If user is typing tag in the field and moves focus to other component, then tag is created.
This is bit annoying because then you have to remove the tag and retype what you were originally typing.
There should be configuration setting for preventing the tagifying process on field blur.
Of course when tag is not automatically created, then the "last" tag must be created outside of tagify field.
Here is my sample code:
$( "#searchbtn" ).click( function(e) {
// Make sure last input value is tagified.
var text = tagify.DOM.input.value.trim();
if ( text ) {
tagify.DOM.input.value = '';
tagify.addTags(text).length;
}
});
The text was updated successfully, but these errors were encountered: