[data-grid] Filter not working for float numbers
Duplicates
- [X] I have searched the existing issues
Latest version
- [X] I have tested the latest version
Current behavior 😯
Currently in the Pro version the material Ui is working with numberic filters but if we try to pass float value i.e 41.965 the filter doesnt work properly and return no record
as we can see the record exists
but as soon as we switch to equal sign to pin point the record the filter doesnt work
is there any additional config required for the float numbers
Expected behavior 🤔
the number type definition in GridColDef should cover all the numeric types float and int
Steps to reproduce 🕹
Steps:
- add filters option
- run filer on float time values 3. 4.
Context 🔦
No response
Your environment 🌎
`npx @mui/envinfo`
Don't forget to mention which browser you used.
Output from `npx @mui/envinfo` goes here.
Order ID 💳 (optional)
32896
Could you provide a reproduction, I couldn't see the bug. This codesandbox.io template may be a good starting point.
The demo in https://mui.com/components/data-grid/demo/ has some columns with floating numbers (e.g. Unit Price). I tried to filter them using the equals operator and it worked.
sorry found the issue its just if you define some of your one custom filter options your essentially overwriting some of them just have to change that and it fixed the issue. Thanks for the example that helped a lot