-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DataGrid] Add key prop to GridFilterInputMultipleValue
#14302
Conversation
Deploy preview: https://deploy-preview-14302--material-ui-x.netlify.app/ |
value.map((option, index) => { | ||
const { key, ...tagProps } = getTagProps({ index }); | ||
return ( | ||
<rootProps.slots.baseChip | ||
key={key} | ||
variant="outlined" | ||
size="small" | ||
label={option} | ||
{...tagProps} | ||
/> | ||
); | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic is taken from
mui-x/packages/x-data-grid/src/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.tsx
Lines 110 to 120 in 45b2835
renderTags={(value, getTagProps) => | |
value.map((option, index) => { | |
const { key, ...tagProps } = getTagProps({ index }); | |
return ( | |
<rootProps.slots.baseChip | |
key={key} | |
variant="outlined" | |
size="small" | |
label={getOptionLabel(option)} | |
{...tagProps} | |
/> |
GridFilterInputMultipleValue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Closes #14299