Skip to content

Commit 15e62c4

Browse files
committed
Fix active cell selection when selecting an area via [shift] + click
1 parent 8a92453 commit 15e62c4

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,7 +70,8 @@ export const handleClick = (
7070

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

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

0 commit comments

Comments
 (0)