components icon indicating copy to clipboard operation
components copied to clipboard

Control when autocomplete options panel opens

Open jmarlow4 opened this issue 9 years ago • 3 comments

Bug, feature request, or proposal:

I'd like to only show the autocomplete panel once the user has entered an input, or perhaps even only show the panel if there are 5 or fewer options. Is there a simple way to do this?

What is the expected behavior?

See above

What is the current behavior?

The panel always opens when the autocomplete's input is focused.

What is the use-case or motivation for changing an existing behavior?

If there are a lot of entries in the options coming in.

jmarlow4 avatar Oct 12 '17 22:10 jmarlow4

You have full control over which and how many options are available. You can just make your array of options empty until you're ready to show the panel.

willshowell avatar Oct 12 '17 23:10 willshowell

Will's suggestion should help you out. If you need further help, feel free to ask on StackOverflow, Gitter, or Google Groups. We try to keep issues only for bugs and features

andrewseguin avatar Oct 13 '17 22:10 andrewseguin

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.