Skip to content

Commit

Permalink
fix selection sync on client mode update (#1126)
Browse files Browse the repository at this point in the history
fixes #1125
  • Loading branch information
epruesse committed Mar 28, 2024
1 parent 578f7cd commit 6a01574
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

- Fixed a bug in `renderDT()`'s evaluation of `...` arguments when `quoted = TRUE` (#1130).

- Maintain selected columns/rows/cells upon re-render (thanks, @epruesse, #1125).

# CHANGES IN DT VERSION 0.32

- Fixed a bug that caused the column used for grouping with the RowGroup extension to change when relocated by the ColReorder extension (thanks, @isthisthat, @mikmart, #1109).
Expand Down
3 changes: 3 additions & 0 deletions inst/htmlwidgets/datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -1032,6 +1032,9 @@ HTMLWidgets.widget({
updateColsSelected();
updateCellsSelected();
})
updateRowsSelected();
updateColsSelected();
updateCellsSelected();
}

var selMode = data.selection.mode, selTarget = data.selection.target;
Expand Down

0 comments on commit 6a01574

Please sign in to comment.