You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is be design, but there are some props: className, fullWidth (tested thus far) on the Picker level do not pass into ...props for the renderInput. Based on the alpha 6 change log, it seemed as if the intended function was for the props of the parent Picker to pass into the renderInput component. Therefore the <div class="MuiFormControl-root MuiTextField-root" data-mui-test="keyboard-date-input"> element is not modified with your className or MuiFormControl-fullWidth class additions unless you put the className or fullWidth props directly on your renderInput component; TextField, etc.
If this is not the case, and it is intended for styling props etc. to be placed directly on the renderInput component, feel free to close this as it may just be a matter of documentation/documentation clarification before this version sees GA.
With className or fullWidth prop on either the Picker component or the renderInput component <div class="MuiFormControl-root MuiTextField-root MuiFormControl-fullWidth myClassName" data-mui-test="keyboard-date-input">
Actual behavior
With className or fullWidth prop on the Picker component <div class="MuiFormControl-root MuiTextField-root" data-mui-test="keyboard-date-input">
With className or fullWidth prop on the renderInput component <div class="MuiFormControl-root MuiTextField-root MuiFormControl-fullWidth myClassName" data-mui-test="keyboard-date-input">
The text was updated successfully, but these errors were encountered:
@cyclops26 These extra props are not supposed to be forwarded anywhere. Actually, we have been discussing with @dmtrKovalenko about using the exactProp() helper to warn in your case.
Thanks @oliviertassinari I was suspecting that was the case the more I dug into it. The warning sounds like a good idea as it may also save trying to accommodate/update a list in the documentation in regard to what is and is not forwardable.
Not sure if this is be design, but there are some props:
className
,fullWidth
(tested thus far) on the Picker level do not pass into...props
for therenderInput
. Based on the alpha 6 change log, it seemed as if the intended function was for the props of the parent Picker to pass into therenderInput
component. Therefore the<div class="MuiFormControl-root MuiTextField-root" data-mui-test="keyboard-date-input">
element is not modified with yourclassName
orMuiFormControl-fullWidth class
additions unless you put theclassName
orfullWidth
props directly on yourrenderInput
component;TextField
, etc.If this is not the case, and it is intended for styling props etc. to be placed directly on the
renderInput
component, feel free to close this as it may just be a matter of documentation/documentation clarification before this version sees GA.Thanks!
Environment
Steps to reproduce
Does Not Work
Working
Expected behavior
With className or fullWidth prop on either the Picker component or the renderInput component
<div class="MuiFormControl-root MuiTextField-root MuiFormControl-fullWidth myClassName" data-mui-test="keyboard-date-input">
Actual behavior
With className or fullWidth prop on the Picker component
<div class="MuiFormControl-root MuiTextField-root" data-mui-test="keyboard-date-input">
With className or fullWidth prop on the renderInput component
<div class="MuiFormControl-root MuiTextField-root MuiFormControl-fullWidth myClassName" data-mui-test="keyboard-date-input">
The text was updated successfully, but these errors were encountered: