I have a Chip like:
const onDelete = (e) => {
e.stopPropagation();
// e.nativeEvent.stopPropagation();
};
return (
<Chip
label={name}
sx={sx}
component={NavLink}
to={to}
clickable={true}
onDelete={onDelete}
/>);
None of the calls stopPropagation() worked, because they are undefined on the Event sent by MUI to the onDelete callback.
Is there anyway I can prevent this chip to follow the Link in to attribute if user clicked to Delete?