fix: file picker opening on delete

This commit is contained in:
Ary Neto
2024-11-26 18:44:32 -07:00
committed by Carlos Valente
parent f3f4cdb19f
commit e7b5baa49a
2 changed files with 5 additions and 3 deletions
@@ -68,7 +68,9 @@ export default function ProjectData() {
uploadInputRef.current?.click();
};
const handleDeleteLogo = () => {
const handleDeleteLogo = (e: React.MouseEvent<HTMLButtonElement>) => {
e.preventDefault();
e.stopPropagation();
setValue('projectLogo', null, {
shouldDirty: true,
});