From 0d98407fca01eed1dc3f05463897029a89b6e527 Mon Sep 17 00:00:00 2001 From: Vasily Strelyaev Date: Fri, 25 Oct 2024 12:38:44 +0400 Subject: [PATCH] fix: wrong drop position when reordering columns in grid (T1246567) (#3682) * fix the wrong drop position * add unit test * lint --- .../plugins/table-column-reordering.test.tsx | 66 ++++++++++++++++++- .../src/plugins/table-column-reordering.tsx | 5 +- 2 files changed, 67 insertions(+), 4 deletions(-) diff --git a/packages/dx-react-grid/src/plugins/table-column-reordering.test.tsx b/packages/dx-react-grid/src/plugins/table-column-reordering.test.tsx index 6c913f0a2c..c1f3259cb6 100644 --- a/packages/dx-react-grid/src/plugins/table-column-reordering.test.tsx +++ b/packages/dx-react-grid/src/plugins/table-column-reordering.test.tsx @@ -173,9 +173,12 @@ describe('TableColumnReordering', () => { {children} ); - const mountWithCellTemplates = ({ - defaultOrder, onOrderChange, - }, deps = {}) => mount(( + + const TestComponent = ({ + defaultOrder, + onOrderChange, + deps, + }) => (