Skip to content

Commit 552fde2

Browse files
committed
Prevents the default “type=submit” on tooltips to stop them triggering actions on click
1 parent 13d737f commit 552fde2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/webapp/app/components/primitives/Tooltip.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ function SimpleTooltip({
8585
<TooltipProvider disableHoverableContent={disableHoverableContent}>
8686
<Tooltip open={open} onOpenChange={onOpenChange}>
8787
<TooltipTrigger
88+
type="button"
8889
tabIndex={-1}
8990
className={cn("h-fit", buttonClassName)}
9091
style={buttonStyle}

0 commit comments

Comments
 (0)