-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
Closed
Labels
component: chipThis is the name of the generic UI component, not the React module!This is the name of the generic UI component, not the React module!regression 🐛A bug, but worseA bug, but worse
Description
Steps to reproduce
Steps:
- Go to the official MUI Chip documentation.
- Scroll to the “Basic Chip” example or open the CodeSandbox.
- Click on
Chip
. - Open the browser’s console and observe the error (CodeSandbox example will crash the page).
Uncaught TypeError: onClick is not a function
at onClick (Chip.js:482:1)
Current behavior
Clicking on Chip without an onClick
prop causes a runtime error.
Expected behavior
If no onClick
handler is provided, the component should not attempt to call it.
Context
No response
Your environment
No response
Search keywords: Chip
koooge, yeahga and cbl980226
Metadata
Metadata
Assignees
Labels
component: chipThis is the name of the generic UI component, not the React module!This is the name of the generic UI component, not the React module!regression 🐛A bug, but worseA bug, but worse