-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[pickers] Console error about non-boolean attribute 'focused' when using DatePicker
/ DateTimePicker
for custom columns in DataGrid
#12018
Comments
Thanks for raising this @wlee-vendelux
Could it be that it gets passed down all the way to the InputBase component through props-spreading? 🤔
|
DatePicker
/ DateTimePicker
for custom columns in DataGrid
DatePicker
/ DateTimePicker
for custom columns in DataGrid
@michelengelen the component you linked does not exist in v6 and is not used by default in v7, it can't be the source of the problem |
It is not? I am sorry! I will investigate this tomorrow a bit deeper! |
In v6 we are using |
Ok, I found the issue. The problem was that the WrappedGridEditDateInput got passed the You can change this by just removing function WrappedGridEditDateInput(props: TextFieldProps) {
const { InputProps, focused, ...other } = props;
return <GridEditDateInput fullWidth {...InputProps} {...(other as InputBaseProps)} />;
} @flaviendelangle Thanks for pointing that out. I searched in the wrong place! 🙇🏼 |
How did we do @wlee-vendelux? |
The problem in depth
DatePicker
orDateTimePicker
Your environment
No response
Search keywords: datepicker datetimepicker datagrid non-boolean focused
Order ID: 69589
The text was updated successfully, but these errors were encountered: