This commit is contained in:
Mohamed Marrouchi 2025-05-12 18:12:00 +01:00
parent 78b217c2f7
commit 5af9de5b19

View File

@ -103,8 +103,8 @@ const AttachmentThumbnail: FC<AttachmentThumbnailProps> = ({
color="inherit"
variant="contained"
startIcon={<ClearIcon />}
onClick={async (e) => {
onChange && onChange(null);
onClick={(e) => {
onChange?.(null);
e.preventDefault();
e.stopPropagation();
}}