aws-amplify / amplify-ui

Amplify UI is a collection of accessible, themeable, performant React (and more!) components that can connect directly to the cloud.
https://ui.docs.amplify.aws
Apache License 2.0
912 stars 293 forks source link

Autocomplete field to have a switch to not show suggestions if there is nothing was entered, like Chrome address bar do #3116

Open Alex-Github-Account opened 1 year ago

Alex-Github-Account commented 1 year ago

On which framework/platform would you like to see this feature implemented?

React, Angular, Vue, React Native, Flutter, iOS, Android, Other

Which UI component is this feature-request for?

Other

Please describe your feature-request in detail.

If user clicks autocomplete field, suggestions will pop up right away, before user has typed anything No way to control that, and it distracts user, especially on mobile devices where user may need to scroll to see suggestions only to find out there are none. This makes component more like popup-"select" rather then autocomplete Google chrome address bar is great example of behaviour I thing will be great to have available: when you click google Chrome address bar, no suggestions pop up until you start to type something.

Please describe a solution you'd like.

To not have breaking changes, some parameter may be added like <Autocomplete quietBeforeChanged = true /> If such parameter set, suggestions only will popup after field was changed (=> there is something to base suggestions on)

We love contributors! Is this something you'd be interested in working on?

reesscot commented 1 month ago

Thank you for your feature request, we are considering adding this to our roadmap.