gerhat / material-ui-formik-components

Formik ready material ui components
MIT License
85 stars 13 forks source link

Unable to handle onChange on autocomplate #34

Closed santhoshgudla closed 4 years ago

santhoshgudla commented 4 years ago

Hi

I have 2 autocomplate text fields one with single selection and other with multiselection. When user select a value in 1st textfield then I want to call api with selected value and populate values in the multiselection textfield.

But here I am unable to get the onChange in the 1st textfield.

Can you please suggest me the solution.

Thank you

icrustandi commented 4 years ago

This is because passing in a custom onChange to the textFieldProps isn't currently allowed: https://github.com/gerhat/material-ui-formik-components/blob/master/src/Autocomplete/Autocomplete.d.ts

I can try to make a pr for this