Skip to content

Commit 619effe

Browse files
committed
update highlight
1 parent 08199cf commit 619effe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ui/src/components/data-table/virtual-table-body.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ function VirtualTableBodyInner<TData, TSectionMeta = unknown>({
116116
(e: React.MouseEvent<HTMLTableSectionElement>) => {
117117
if (!onRowClick && !getRowHref) return;
118118

119+
// If the user dragged to select text, don't trigger navigation.
120+
const selection = window.getSelection();
121+
if (selection && selection.toString().length > 0) return;
122+
119123
// Skip the second click of a multi-click sequence when dblclick is handled,
120124
// otherwise two competing startViewTransition calls cause the dblclick's
121125
// router.push to never execute.

0 commit comments

Comments
 (0)