gerhat / material-ui-formik-components

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

Support for disableClearable on AutoComplete #39

Open icrustandi opened 3 years ago

icrustandi commented 3 years ago

Is there any way you could add support to toggle the clear button on the autocomplete component? https://material-ui.com/api/autocomplete/

There's currently no way to disable the button - but I know that the material-ui component supports it using the disableClearable prop

gerhat commented 3 years ago

Thank you for reporting this issue. If you use plain JS you shouldn't have a problem. In TypeScript, I need to extend the FAutocompleteProps https://github.com/gerhat/material-ui-formik-components/blob/master/src/Autocomplete/Autocomplete.d.ts