meteor-autocomplete icon indicating copy to clipboard operation
meteor-autocomplete copied to clipboard

Display nothing when no matches

Open avram-battery opened this issue 8 years ago • 2 comments

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.

avram-battery avatar Aug 02 '17 23:08 avram-battery

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

Ethaan avatar Aug 17 '17 05:08 Ethaan

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

georgiosd avatar Jul 02 '20 20:07 georgiosd