Closed S-e-b-a-s closed 2 weeks ago
Thanks for raising this @S-e-b-a-s ... I can confirm this bug and have found the cause of it.
Since this is a fairly easy fix we can open this up as a good first issue
! 👍🏼
here is a diff with a potential fix:
diff --git a/packages/x-data-grid/src/components/panel/filterPanel/GridFilterInputMultipleValue.tsx b/packages/x-data-grid/src/components/panel/filterPanel/GridFilterInputMultipleValue.tsx
index e62a47501..6482be992 100644
--- a/packages/x-data-grid/src/components/panel/filterPanel/GridFilterInputMultipleValue.tsx
+++ b/packages/x-data-grid/src/components/panel/filterPanel/GridFilterInputMultipleValue.tsx
@@ -65,14 +65,18 @@ function GridFilterInputMultipleValue(props: GridFilterInputMultipleValueProps)
value={filterValueState}
onChange={handleChange}
renderTags={(value, getTagProps) =>
- value.map((option, index) => (
- <rootProps.slots.baseChip
- variant="outlined"
- size="small"
- label={option}
- {...getTagProps({ index })}
- />
- ))
+ value.map((option, index) => {
+ const { key, ...tagProps } = getTagProps({ index });
+ return (
+ <rootProps.slots.baseChip
+ variant="outlined"
+ size="small"
+ label={option}
+ key={key}
+ {...tagProps}
+ />
+ );
+ })
}
renderInput={(params) => (
<rootProps.slots.baseTextField
@michelengelen pr opened https://github.com/mui/mui-x/pull/14302
:warning: This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
@S-e-b-a-s: 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: StackBlitz Example
Steps:
Complete traceback:
Possible issue related with MUI Core https://github.com/mui/material-ui/issues/39833
Context
I'm in the process of migrating all my DataGrid components to the latest major version. During testing, I encountered this warning.
Your environment
``` System: OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish) Binaries: Node: 18.17.1 - /usr/bin/node npm: 9.6.7 - /usr/bin/npm pnpm: 8.6.12 - /usr/bin/pnpm Browsers: Google Chrome 127.0.6533.120 (Build oficial) (64 bits) npmPackages: @emotion/react: ^11.13.3 => 11.13.3 @emotion/styled: ^11.13.0 => 11.13.0 @mui/icons-material: ^5.16.7 => 5.16.7 @mui/lab: 5.0.0-alpha.173 => 5.0.0-alpha.173 @mui/material: ^5.16.7 => 5.16.7 @mui/x-data-grid: ^7.13.0 => 7.13.0 @types/react: ^18.3.4 => 18.3.4 react: ^18.3.1 => 18.3.1 react-dom: ^18.3.1 => 18.3.1 ```npx @mui/envinfo
Search keywords: datagrid, chip, filter,