diff --git a/ts-packages/react-components/src/components/clipboard/CopyToClipboard.tsx b/ts-packages/react-components/src/components/clipboard/CopyToClipboard.tsx index 344241e566..2bcc6852fc 100644 --- a/ts-packages/react-components/src/components/clipboard/CopyToClipboard.tsx +++ b/ts-packages/react-components/src/components/clipboard/CopyToClipboard.tsx @@ -13,7 +13,8 @@ export const CopyToClipboard: React.FC<{ }> = ({ value, tooltip, onCopy, sx }) => { const copy = useClipboard(); const [showConfirmation, setShowConfirmation] = React.useState(false); - const handleCopy = () => { + const handleCopy = (e: React.MouseEvent) => { + e.stopPropagation(); setShowConfirmation(true); copy.copy(value); if (onCopy) {