Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions static/app/views/dashboards/widgetCard/widgetFrame.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ export function WidgetFrame(props: WidgetFrameProps) {
<LinkButton
size="xs"
disabled={props.actionsDisabled}
onClick={actions[0]!.onAction}
onClick={e => {
e.stopPropagation();
actions[0]!.onAction?.();
}}
to={actions[0]!.to}
>
{actions[0]!.label}
Expand All @@ -117,7 +120,10 @@ export function WidgetFrame(props: WidgetFrameProps) {
<Button
size="xs"
disabled={props.actionsDisabled}
onClick={actions[0]!.onAction}
onClick={e => {
e.stopPropagation();
actions[0]!.onAction?.();
}}
>
{actions[0]!.label}
</Button>
Expand Down Expand Up @@ -148,7 +154,8 @@ export function WidgetFrame(props: WidgetFrameProps) {
aria-label={t('Copy Widget URL')}
variant="transparent"
icon={<IconCopy />}
onClick={() => {
onClick={e => {
e.stopPropagation();
props.onCopyUrlClick?.();
}}
/>
Expand All @@ -161,7 +168,8 @@ export function WidgetFrame(props: WidgetFrameProps) {
aria-label={t('Open Full-Screen View')}
variant="transparent"
icon={<IconExpand />}
onClick={() => {
onClick={e => {
e.stopPropagation();
props.onFullScreenViewClick?.();
}}
/>
Expand Down
Loading