-
-
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
[data grid] Numbers and booleans are returned as strings when filtering in a DataGrid #14327
Comments
This actually applies the same with booleans |
Confirmed @victorct-tradeengage ... @cherniavskii could this be related to the recent changes for the localStorage issue? |
@michelengelen I think it also applies to dates, will double check today |
This doesn't happen with dates, internally we are converting those string values into the other types (using |
We should use the parser when it makes sense, probably in the input component change handler. Feel free to send a PR for this. |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note @victorct-tradeengage How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: link
Steps:
filterModel
, usingonFilterModelChange
filterModel
is a string, not a number or a boolean.Current behavior
Numbers and booleans are being returned as strings when filtering a DataGrid
Expected behavior
Numbers and booleans must be returned as numbers or booleans when filtering a DataGrid
Context
No response
Your environment
npx @mui/envinfo
Search keywords: number, filter, string, DataGird
Order ID: I have a license key for the premium, not can share the email if needed, not sure how to get the OrderID
The text was updated successfully, but these errors were encountered: