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

How to Select first suggestion by default if user not selected any suggestion? #828

Open
shubhambatra opened this issue Oct 7, 2021 · 0 comments

Comments

@shubhambatra
Copy link

shubhambatra commented Oct 7, 2021

How to Select first suggestion by default if user not selected any suggestion??

My requirement is => if user didn't select any suggestion and suggestion is available then on outside click by default first suggestion should get selected.
If there is no suggestion then the value enter by user should remain as it is.

Problem: While I am setting state on onSuggestionSelected. updated state is not accessible in onSuggestionsClearRequested.

  • Is there any way that in onSuggestionsClearRequested function I will know that user has selected the suggestion or just click outside
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant