Skip to content

Commit 7a547bd

Browse files
[chip] Remove unnecessary onDelete check (#47753)
1 parent 583e869 commit 7a547bd

File tree

1 file changed

+1
-3
lines changed
  • packages/mui-material/src/Chip

1 file changed

+1
-3
lines changed

packages/mui-material/src/Chip/Chip.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,9 +396,7 @@ const Chip = React.forwardRef(function Chip(inProps, ref) {
396396
const handleDeleteIconClick = (event) => {
397397
// Stop the event from bubbling up to the `Chip`
398398
event.stopPropagation();
399-
if (onDelete) {
400-
onDelete(event);
401-
}
399+
onDelete(event);
402400
};
403401

404402
const handleKeyDown = (event) => {

0 commit comments

Comments
 (0)