dohomi / react-hook-form-mui

Material-UI form components ready to use with react-hook-form
https://react-hook-form-material-ui.vercel.app
MIT License
561 stars 111 forks source link

Update RHF-MUI to be compatible with MUI v6 #303

Closed beverloo closed 2 months ago

beverloo commented 2 months ago

The PR was validated by (successfully) linting and building all targets, and comparing the storybook with the published version having found no visual or behavioural differences. Since no code changes were necessary this might not even need a new major release :)

There are two notable changes from the migration guide that have not been adopted yet: https://mui.com/material-ui/migration/upgrade-to-v6/

When a MUI X dependency is used (i.e. @mui/x-date-pickers) then, when wanting to use it together with MUI v6, the minimum version is MUI X v7.15 as that adds the peer dependency allowance. However, since it still supports v5 as well, I did not update the minimum MUI X version in package.json.

Fixes #273

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-hook-form-material-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 1, 2024 4:08pm
beverloo commented 2 months ago

Please take a look! I think I've built and tested everything I can in the library, however a double check would definitely be appreciated.

I had expected that code changes would've been necessary, but there were none. There are a number of deprecations in v6 that RHF-MUI is subject to, particularly moving to slots for e.g. InputProps, but adopting those won't be required until at least v7.

dohomi commented 2 months ago

@beverloo thanks for taking your time I published 7.1.0 with the compatibility for MUI v6