Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show AutoSuggestBox overlay when content is empty. #912

Closed
frg2089 opened this issue Aug 10, 2023 · 2 comments
Closed

Show AutoSuggestBox overlay when content is empty. #912

frg2089 opened this issue Aug 10, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@frg2089
Copy link

frg2089 commented Aug 10, 2023

Is your feature request related to a problem? Please describe.
I noticed this entry in the 4.7.2 changelog.

  • fix: AutoSuggestBox overlay is now only displayed after the user started typing (d95970a)

I use it to displayed something like search history.
But now, it doesn't work.

Describe the solution you'd like
Is there anything that provides a way to provide a Suggest when the text is empty?
like

AutoSuggestBox({
  displayOverlayWhenClick: true
})
@bdlukaa bdlukaa added the enhancement New feature or request label Aug 10, 2023
@bdlukaa
Copy link
Owner

bdlukaa commented Aug 10, 2023

I'd rather expose AutoSuggestBoxState to make it possible to open the overlay programatically. This way you could listen to the focus and show the overlay accordingly.

The native behavior is to only show the overlay when the user starts typing.

@bdlukaa
Copy link
Owner

bdlukaa commented Aug 12, 2023

This is fixed on 4b98f75

The example app shows how to do it!

@bdlukaa bdlukaa closed this as completed Aug 12, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants