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

InivitalValues not displayed with AutoComplete component. #28

Closed
pzapo opened this issue Apr 9, 2020 · 6 comments
Closed

InivitalValues not displayed with AutoComplete component. #28

pzapo opened this issue Apr 9, 2020 · 6 comments

Comments

@pzapo
Copy link

pzapo commented Apr 9, 2020

Passing initialValues to formik Field component with AutoComplete is broken. InitialValues are not rendered on AutoComplete component but when save is clicked then they are available in values formik variable.

Here is link to sample code based on your example from documentation:
https://codesandbox.io/s/goofy-wildflower-i3h1r

@dalborgo
Copy link

The same problem for me.

@gian788
Copy link

gian788 commented Apr 15, 2020

Same issue for me too

@gerhat
Copy link
Owner

gerhat commented Apr 15, 2020

Thank you for reporting @pzapo @dalborgo and @gian788.
It is indeed an issue. Will fix asap.

@shtjefeen
Copy link
Contributor

@gerhat Did u get this fixed!

@shtjefeen
Copy link
Contributor

@gerhat I created a pull request for this one

@gerhat
Copy link
Owner

gerhat commented Apr 23, 2020

Issue fixed in v0.6.2.

Here is an example on how to pass initial values to autocomplete.

const initialValues = {
  skills: [
    {
      label: 'ASP.NET',
      value: 'ASP.NET',
    },
  ],
}

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

5 participants