MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
Hey @ZzzZeta ... thanks for raising this.
It seems we are a bit inconsistent here, since it does work the way you would expect it when using multi-filters.
I will add this to the board for the team to have a look! 👍🏼
Steps to reproduce
Link to live example: https://codesandbox.io/p/sandbox/xenodochial-driscoll-c3wmcx
A: A filter is always created with undefined value when open the panel.
Steps:
B: If input value is not
undefined
, delete a filter requires 2 delete clicksSteps:
undefined
rather than deleting the filter. The filter indicator is gone.Current behavior
Explained in steps to reproduce.
Expected behavior
Context
Filtering behavior should be consistent.
Your environment
``` System: OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm) Binaries: Node: 20.9.0 - /usr/local/bin/node npm: 9.8.1 - /usr/local/bin/npm pnpm: 8.10.2 - /usr/local/share/npm-global/bin/pnpm Browsers: Chrome: Not Found npmPackages: @emotion/react: 11.11.4 => 11.11.4 @emotion/styled: 11.11.5 => 11.11.5 @mui/material: 5.15.18 => 5.15.18 @mui/x-data-grid: 7.5.1 => 7.5.1 @types/react: 18.2.38 => 18.2.38 react: 18.2.0 => 18.2.0 react-dom: 18.2.0 => 18.2.0 typescript: 4.4.4 => 4.4.4 ```npx @mui/envinfo
Search keywords: GridFilterOperator