Skip to content

Commit

Permalink
[DataGrid] Add key prop to GridFilterInputMultipleValue (#14302)
Browse files Browse the repository at this point in the history
  • Loading branch information
sai6855 authored Aug 29, 2024
1 parent 3ff993c commit 60b494d
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
key={key}
variant="outlined"
size="small"
label={option}
{...tagProps}
/>
);
})
}
renderInput={(params) => (
<rootProps.slots.baseTextField
Expand Down

0 comments on commit 60b494d

Please sign in to comment.