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

Feat/autocomplete #34

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

allandiego
Copy link

Functional but not optimal, its very trick to set the initial value on this component using data from api request, specially if you are using it as a select input with pair label/value because the initial value must be in the first api request page if you have many options and the requests are paginated.

@italoiz italoiz linked an issue Sep 17, 2020 that may be closed by this pull request
@allandiego
Copy link
Author

allandiego commented Sep 22, 2020

I have added examples for single and multiple options.

To do:

  • Check a bug with multiple and required prop when form initialData is set, the submit wont recognize that input is filled with data but it's received by the formData submit
<Autocomplete multiple required />
  • Create more tests

@italoiz
Copy link
Owner

italoiz commented Jan 10, 2023

@allandiego Do have interest to update your pull request to cover all tests case for the autocomplete resource?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integração com AutoComplete e material-ui/pickers
2 participants