From 70c7f1103b8f063533d04d303385190b9e44d06a Mon Sep 17 00:00:00 2001 From: kseniyakuzina Date: Tue, 24 Sep 2024 17:28:22 +0300 Subject: [PATCH] fix(BaseHeaderCell): fix resizing when sorting enabled --- src/components/BaseHeaderCell/BaseHeaderCell.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BaseHeaderCell/BaseHeaderCell.tsx b/src/components/BaseHeaderCell/BaseHeaderCell.tsx index 14c3259..02bf1ab 100644 --- a/src/components/BaseHeaderCell/BaseHeaderCell.tsx +++ b/src/components/BaseHeaderCell/BaseHeaderCell.tsx @@ -58,7 +58,7 @@ export const BaseHeaderCell = ({ className={b('header-cell', getHeaderCellClassModes(header), className)} colSpan={header.colSpan > 1 ? header.colSpan : undefined} rowSpan={rowSpan > 1 ? rowSpan : undefined} - onClick={header.column.getToggleSortingHandler()} + onMouseDown={header.column.getToggleSortingHandler()} aria-sort={getAriaSort(header.column.getIsSorted())} aria-colindex={getHeaderCellAriaColIndex(header)} {...attributes}