Skip to content

Commit

Permalink
fix: prevent form submit on tooltip click, ref #5258
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-watters committed Apr 22, 2024
1 parent 5264a99 commit 8735380
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function AvailableBalance({
<styled.span color="ink.text-subdued" textStyle="caption.01">
Available balance
</styled.span>
<BasicTooltip label={balanceTooltipLabel} side="top">
<BasicTooltip asChild label={balanceTooltipLabel} side="top">
<Box>
<InfoCircleIcon color="ink.text-subdued" variant="small" />
</Box>
Expand Down
1 change: 1 addition & 0 deletions src/app/ui/components/tooltip/basic-tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ interface BasicTooltipProps {
side?: RadixTooltip.TooltipContentProps['side'];
asChild?: boolean;
}

export function BasicTooltip({ children, label, disabled, side, asChild }: BasicTooltipProps) {
const isDisabled = !label || disabled;
return (
Expand Down

0 comments on commit 8735380

Please sign in to comment.