Fix export stop propagation

This commit is contained in:
Paulo Gustavo Veiga 2022-02-12 13:12:43 -08:00
parent 53ec19ffb5
commit 5d107ef841

View File

@ -85,11 +85,13 @@ const ShareDialog = ({ mapId, onClose }: SimpleDialogProps): React.ReactElement
const name = event.target.name; const name = event.target.name;
const value = event.target.value; const value = event.target.value;
setModel({ ...model, [name as keyof ShareModel]: value }); setModel({ ...model, [name as keyof ShareModel]: value });
event.stopPropagation();
}; };
const handleOnAddClick = (event: React.MouseEvent<HTMLButtonElement, MouseEvent>): void => { const handleOnAddClick = (event: React.MouseEvent<HTMLButtonElement, MouseEvent>): void => {
event.stopPropagation(); event.stopPropagation();
addMutation.mutate(model); addMutation.mutate(model);
event.stopPropagation();
}; };
const handleOnDeleteClick = ( const handleOnDeleteClick = (