formik-mui icon indicating copy to clipboard operation
formik-mui copied to clipboard

formik-mui-x-date-pickers - The `renderInput` has been replaced by an input component slot props

Open jmcpeak opened this issue 1 year ago • 2 comments

Current Behavior 😯

When using the DatePicker wrapper, a warning is oupt to the console:

The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.
You can replace it with the `textField` component slot in most cases.
For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5). 
    at DesktopDatePicker (https://localhost.collegeboard.org:3000/_next/static/chunks/node_modules_@mui_x-date-pickers_f67c68._.js:10225:219)
    at DatePicker (https://localhost.collegeboard.org:3000/_next/static/chunks/node_modules_@mui_x-date-pickers_f67c68._.js:11209:239)

Expected Behavior 🤔

No console message should be logged https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5

Steps to Reproduce 🕹

Open the console here: https://codesandbox.io/p/sandbox/silent-rain-v3lzql

jmcpeak avatar Feb 28 '24 22:02 jmcpeak

I'm going to try and get a PR going tomorrow to fix this

jmcpeak avatar Feb 28 '24 22:02 jmcpeak

@jmcpeak Were you able to write this PR or were you able to find a workaround that you could share please?

nattyg93 avatar Apr 18 '24 03:04 nattyg93

I finally have time to look at this, sponsored by my employer. Will report back soon.

jmcpeak avatar Aug 23 '24 17:08 jmcpeak

Thanks @jmcpeak

This has been published in [email protected].

Will give it a try in a few projects and then publish a stable version

cliedeman avatar Aug 28 '24 13:08 cliedeman