Skip to content

Commit 1dae8ab

Browse files
committed
Revert "Fix active cell selection when selecting an area via [shift] + click"
This reverts commit 15e62c4.
1 parent 8782a68 commit 1dae8ab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/dash-table/src/dash-table/handlers/cellEvents.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ export const handleClick = (
7070

7171
const newProps: Partial<ICellFactoryProps> = {
7272
is_focused: false,
73-
end_cell: clickedCell,
74-
active_cell: clickedCell
73+
end_cell: clickedCell
7574
};
7675

7776
if (e.shiftKey && active_cell) {
@@ -86,6 +85,7 @@ export const handleClick = (
8685
viewport
8786
);
8887
} else {
88+
newProps.active_cell = clickedCell;
8989
newProps.start_cell = clickedCell;
9090
newProps.selected_cells = [clickedCell];
9191
}

0 commit comments

Comments
 (0)