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

shouldFetchSuggestions prop is not updated based on current user input value #360

Open
adorum opened this issue Mar 17, 2021 · 3 comments
Open

Comments

@adorum
Copy link

adorum commented Mar 17, 2021

Do you want to request a feature or report a bug?
bug
What is the current behavior?
shouldFetchSuggestions prop takes a boolean. My conditions is shouldFetchSuggestions={state.value.length > 2}. When I type New lib does not start to fetch the predictions. But it should because current length of input is 3 which is bigger than 2.
What is the expected behavior?
Predictions should be fetched when condition is met.
Which versions of ReactPlacesAutocomplete, and which browser / OS are affected by this issue?
7.3.0

@CesarCarrillo91
Copy link

same issue being experienced by the same conditions.

@cibulka
Copy link

cibulka commented Aug 30, 2021

I also see that shouldFetchSuggestions does not update if user pastes value to the input (cmd+c, cmd+v).

@gedclack
Copy link

gedclack commented Apr 8, 2022

The component should have a prop called minFetchLength instead 🤔

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

4 participants