Skip to content

Commit cafc024

Browse files
committed
also copy selection mode
Signed-off-by: Itay Dafna <[email protected]>
1 parent 2a07d3f commit cafc024

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ipydatagrid/datagrid.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,10 @@ def selected_cell_values(self):
532532
# the front-end data model
533533
selections_grid = DataGrid(view_data)
534534

535-
# Copying over selections from main grid
535+
# Copying over selections/mode from main grid
536536
selections_grid.selections = self.selections
537+
selections_grid.selection_mode = self.selection_mode
538+
537539
return SelectionHelper(grid=selections_grid).all_values()
538540

539541
@property

0 commit comments

Comments
 (0)