Skip to content

Commit bbfc891

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 941e4a2 commit bbfc891

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
@@ -947,7 +947,7 @@ function HeaderCellContent({
947947
})}
948948
>
949949
<span className="truncate text-left">{children}</span>
950-
<span className="flex shrink-0">
950+
<span className="flex shrink-0" onClick={(event) => event.stopPropagation()}>
951951
<InfoIconTooltip
952952
content={tooltip}
953953
contentClassName="normal-case tracking-normal"

0 commit comments

Comments
 (0)