Skip to content
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

Any wrapper element around the Chip component causes an error. #45267

Open
anyebojue opened this issue Feb 10, 2025 · 2 comments
Open

Any wrapper element around the Chip component causes an error. #45267

anyebojue opened this issue Feb 10, 2025 · 2 comments
Labels
status: waiting for maintainer These issues haven't been looked at yet by a maintainer

Comments

@anyebojue
Copy link

anyebojue commented Feb 10, 2025

Steps to reproduce

const renderActionButtons = (row: PropertyCompanyReply) => {
const actions = [
{ title: 'manageAccounts', action: 'manageAccounts' },
{ title: 'edit', action: 'edit' },
{ title: 'delete', action: 'delete' },
{ title: 'login', action: 'login' },
{ title: 'block', action: 'block' },
{ title: 'restartAlt', action: 'restartAlt' }
]
return (
<Box
sx={{
display: 'flex',
flexWrap: 'wrap',
gap: 0.5,
justifyContent: 'center',
alignItems: 'center'
}}
>
{actions.map(({ title, action }) => (
<Chip
key={title}
sx={{
cursor: 'pointer',
width: 'calc(33.33% - 8px)',
'& .MuiChip-label': {
fontSize: '13px'
}
}}
label={title}
color="primary"
variant="outlined"
onClick={() => handleActionClick(action, row)}
/>
))}

)
}

Any wrapper element around the Chip component causes an error.
hook.js:608 Warning: React does not recognize the touchRippleRef prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase touchrippleref instead. If you accidentally passed it from a parent component, remove it from the DOM element. Error Component Stack.

“When I don’t add a wrapper component, there is no error, but when I add it, the error occurs. This happens regardless of whether it’s or any other tag. The error happens with the following MUI X version: @mui/material: "^6.4.3".”
https://mui.com/material-ui/react-chip/

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

Search keywords: Chip

@anyebojue anyebojue added the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Feb 10, 2025
@aarongarciah
Copy link
Member

@anyebojue please provide a reproduction.

@aarongarciah aarongarciah added status: waiting for author Issue with insufficient information and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Feb 10, 2025
@anyebojue
Copy link
Author

anyebojue commented Feb 11, 2025

@github-actions github-actions bot added status: waiting for maintainer These issues haven't been looked at yet by a maintainer and removed status: waiting for author Issue with insufficient information labels Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for maintainer These issues haven't been looked at yet by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants