-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
Closed
Labels
scope: chipChanges related to the chip.Changes related to the chip.type: regressionA bug, but worse, it used to behave as expected.A bug, but worse, it used to behave as expected.
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, cbl980226 and rokstrnisa
Metadata
Metadata
Assignees
Labels
scope: chipChanges related to the chip.Changes related to the chip.type: regressionA bug, but worse, it used to behave as expected.A bug, but worse, it used to behave as expected.