[pickers] Custom input component (renderInput) doesn't work with month view #6487
Closed
2 tasks done
Labels
bug 🐛
Something doesn't work
component: pickers
This is the name of the generic UI component, not the React module!
Current Behavior 😯
Using a
input
element for myrenderInput
together with the 'month' view results in errors.Errors:
React does not recognize the 'renderInput' prop on a DOM element.
React does not recognize the 'inputFormat' prop on a DOM element.
Expected Behavior 🤔
No errors.
Steps to Reproduce 🕹
Steps:
input
element as custom renderInput:views={['year', 'month', 'day']}
I did some minimal changes to
Custom input component
sandbox example from next material-ui docs to recreate this issue: https://codesandbox.io/s/custominput-material-demo-forked-8i50gContext 🔦
I want to use the 'month' view with a custom 'renderInput' without getting errors.
Your Environment 🌎
`npx @material-ui/envinfo`
The text was updated successfully, but these errors were encountered: