bmvantunes / youtube-2020-june-multi-step-form-formik

A repository with a multi-step form using Formik, Yup and Material-UI
https://youtu.be/l3NEC4McW3g
MIT License
101 stars 68 forks source link

Using Autocomplete with option `multiple` #5

Closed 3runoDesign closed 4 years ago

3runoDesign commented 4 years ago

Incredible your video... It has the beginning, middle and end of a real use case.

I'm trying to implement the component Autocomplete.

But i'm getting this return: image

Thanks!

bmvantunes commented 4 years ago

Do you have a codesandbox or StackBlitz to have a look? 🙂

3runoDesign commented 4 years ago

@bmvantunes https://codesandbox.io/s/formik-steps-pxk9b

bmvantunes commented 4 years ago

@3runoDesign you want to from one field change another field. You are in luck, I created an example exactly like that a few weeks ago =D

https://codesandbox.io/s/zen-surf-tesu7?file=/src/pages/index.tsx

You type "bruno" and it will change the second to "Antunes" =D

3runoDesign commented 4 years ago

@3runoDesign you want to from one field change another field. You are in luck, I created an example exactly like that a few weeks ago =D

https://codesandbox.io/s/zen-surf-tesu7?file=/src/pages/index.tsx

You type "bruno" and it will change the second to "Antunes" =D

tks! it helped me very much!

3runoDesign commented 4 years ago

Solved! 👍 This field is an array https://codesandbox.io/s/formik-steps-pxk9b?file=/src/App.tsx:554-670