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

[DataGrid] Fix value type in filter model for number and boolean column type #14733

Merged
merged 6 commits into from
Oct 21, 2024

Conversation

k-rajat19
Copy link
Contributor

@k-rajat19 k-rajat19 commented Sep 25, 2024

Fixes #14327

Currently, number and boolean column types store filter item value in filter model as a string type (see demo)
we should rather store these values according to their respective column type (we already do that for date and dateTime column types).

@k-rajat19 k-rajat19 changed the title [DataGrid]: fix value type in filter model for number and boolean column type [DataGrid] fix value type in filter model for number and boolean column type Sep 25, 2024
@mui-bot
Copy link

mui-bot commented Sep 25, 2024

Deploy preview: https://deploy-preview-14733--material-ui-x.netlify.app/

Generated by 🚫 dangerJS against a692412

@zannager zannager added the component: data grid This is the name of the generic UI component, not the React module! label Sep 26, 2024
@oliviertassinari oliviertassinari changed the title [DataGrid] fix value type in filter model for number and boolean column type [DataGrid] Fix value type in filter model for number and boolean column type Oct 1, 2024
@k-rajat19
Copy link
Contributor Author

k-rajat19 commented Oct 7, 2024

@romgrk, can you please look at these changes when you have time?

@zannager zannager requested a review from romgrk October 17, 2024 12:07
@romgrk romgrk merged commit f436fe0 into mui:master Oct 21, 2024
18 checks passed
@k-rajat19 k-rajat19 deleted the value-type branch October 22, 2024 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: data grid This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[data grid] Numbers and booleans are returned as strings when filtering in a DataGrid
4 participants