gerhat / material-ui-formik-components

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

Select typing issue? #24

Closed thelazydogsback closed 4 years ago

thelazydogsback commented 4 years ago

When I use the following from the sample code:

              <FormControl>
                <InputLabel htmlFor="age-simple">Age</InputLabel>
                <Select name="age"
                  inputProps={{
                    id: 'age-simple',
                  }}
                       <MenuItem value={10}>Ten</MenuItem> 
                           ...
                >

I get the following error for the Select:

Type '{ children: Element[]; name: string; inputProps: { id: string; }; }' is missing the following properties from type 'SelectProps': field, form, metats(2769)

thelazydogsback commented 4 years ago

Ugh. Using both matui-formik and formik-matui, so used the wrong pattern :(