Meteor-Community-Packages / meteor-autocomplete

Client/server autocompletion designed for Meteor's collections and reactivity.
https://atmospherejs.com/mizzao/autocomplete
MIT License
350 stars 109 forks source link

Add object to collection if no match #95

Open salmansqadeer opened 9 years ago

salmansqadeer commented 9 years ago

I would like to add the matched object to my collection if it is not found in the current selection, but I have found that when nothing is found the autocompleteselect function doesn't fire.

"autocompleteselect input": function(event, template, doc) { console.log(doc); }

I have tried using the noMatchTemplate to no success - has anyone had any luck doing this?