Skip to content

Commit d9a5204

Browse files
committed
fix(webapp): stop the column info tooltip triggering column sort
Clicking the info-icon tooltip in a sortable column header still toggled the column sort because the click bubbled up to the header's click handler, unlike the dedicated sort and filter buttons, which already stop propagation. Stop the click from bubbling past the tooltip so hovering or clicking the info icon no longer changes the sort order.
1 parent 5a2879d commit d9a5204

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/webapp/app/components/code/TSQLResultsTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ function HeaderCellContent({
948948
})}
949949
>
950950
<span className="truncate text-left">{children}</span>
951-
<span className="flex shrink-0">
951+
<span className="flex shrink-0" onClick={(event) => event.stopPropagation()}>
952952
<InfoIconTooltip
953953
content={tooltip}
954954
contentClassName="normal-case tracking-normal"

0 commit comments

Comments
 (0)