diff --git a/static/app/components/copyToClipboardButton.tsx b/static/app/components/copyToClipboardButton.tsx index a2e07d42812492..bd5693109efca4 100644 --- a/static/app/components/copyToClipboardButton.tsx +++ b/static/app/components/copyToClipboardButton.tsx @@ -22,6 +22,7 @@ export function CopyToClipboardButton({ onCopy, onError, text, + onClick: passedOnClick, ...props }: Props) { const {onClick, label} = useCopyToClipboard({ @@ -38,7 +39,7 @@ export function CopyToClipboardButton({ translucentBorder onClick={e => { onClick(); - props.onClick?.(e); + passedOnClick?.(e); }} {...props} > diff --git a/static/app/views/ddm/codeLocations.tsx b/static/app/views/ddm/codeLocations.tsx index 6bc1ae2c3333eb..b909e3ade840ff 100644 --- a/static/app/views/ddm/codeLocations.tsx +++ b/static/app/views/ddm/codeLocations.tsx @@ -106,6 +106,7 @@ function CodeLocation({codeLocation, isFirst, isLast}: CodeLocationProps) { size="zero" iconSize="xs" borderless + onClick={(event: React.MouseEvent) => event.stopPropagation()} />