Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jmcpeak opened this issue Feb 28, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@jmcpeak
Copy link
Contributor

jmcpeak commented Feb 28, 2024

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 jmcpeak added the bug Something isn't working label Feb 28, 2024
@jmcpeak jmcpeak changed the title formik-mui-x-date-pickers - The renderInput has been replaced by an input component slot props formik-mui-x-date-pickers - The renderInput has been replaced by an input component slot props Feb 28, 2024
@jmcpeak
Copy link
Contributor Author

jmcpeak commented Feb 28, 2024

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

@nattyg93
Copy link

nattyg93 commented Apr 18, 2024

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

@jmcpeak
Copy link
Contributor Author

jmcpeak commented Aug 23, 2024

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

@cliedeman
Copy link
Collaborator

Thanks @jmcpeak

This has been published in formik-mui-x-date-pickers@2.0.0-alpha.0.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants