MUI DataGrid getApplyQuickFilterFn 仅应用于第一列

问题描述 投票:0回答:1

我正在尝试将相同的自定义快速过滤器应用于 MUI DataGrid 中的多个列。我按照https://v6.mui.com/x/react-data-grid/filtering/quick-filter/#custom-filtering-logic中的示例进行操作。不幸的是,过滤器始终仅应用于第一列。你遇到过类似的问题吗?

在搜索输入中输入任何内容后,GridCellParams 将被 console.loged。人们可以看到只考虑了第一列。

https://codesandbox.io/p/sandbox/epic-rubin-fhd5ys

material-ui mui-x-data-grid
1个回答
0
投票

按顺序检查列过滤器。如果第一列过滤器返回 true,则不会检查所有后续列过滤器。

最新问题
© www.soinside.com 2019 - 2024. All rights reserved.