Skip to content

Commit 1103d2e

Browse files
authored
fix(issues): Prevent "Set up code mapping" from closing frame (#96675)
1 parent cc18504 commit 1103d2e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

static/app/components/events/interfaces/frame/stacktraceLink.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,13 +348,16 @@ export function StacktraceLink({frame, event, line, disableSetup}: StacktraceLin
348348
return (
349349
<StacktraceLinkWrapper>
350350
<FixMappingButton
351+
type="button"
351352
priority="link"
352353
icon={
353354
sourceCodeProviders.length === 1
354355
? getIntegrationIcon(sourceCodeProviders[0]!.provider.key, 'sm')
355356
: undefined
356357
}
357-
onClick={() => {
358+
onClick={e => {
359+
// Prevent from opening/closing the stack frame
360+
e.stopPropagation();
358361
trackAnalytics(
359362
'integrations.stacktrace_start_setup',
360363
{
@@ -407,6 +410,8 @@ const StacktraceLinkWrapper = styled('div')`
407410

408411
const FixMappingButton = styled(Button)`
409412
color: ${p => p.theme.subText};
413+
font-weight: 400;
414+
font-size: ${p => p.theme.fontSize.sm};
410415
&:hover {
411416
color: ${p => p.theme.subText};
412417
}

0 commit comments

Comments
 (0)