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

Display nothing when no matches #143

Open avram-battery opened 7 years ago

avram-battery commented 7 years ago

I would realy like the option of displaying nothing when there are no matches. It would be great to be able to specify noMatchTemplate: false or maybe null and have it just not show anything.

For my use case, I'm displaying employee names if they exist, but using the same input for entering a new employee name. If there are no matches, it doesn't make sense to display that fact, I'd like it to simply look like a normal input field.

Ethaan commented 7 years ago

Why dont use noMatchTemplate: someTemplate and make someTemplate just be an empty template?

georgiosd commented 4 years ago

@Ethaan because noMatchTemplate is rendered inside the -autocomplete-container