Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/cellmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,11 @@ export default class CellManager {

clearSelection() {
(this._selectedCells || [])
.forEach($cell => $cell.classList.remove('dt-cell--highlight'));

.forEach($cell => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't seem correct. The real problem is this array containing null... why does that happen?

if that root cause is harmless then fix is fine.

if ($cell && $cell.classList) {
$cell.classList.remove('dt-cell--highlight');
}
});
this._selectedCells = [];
this.$selectionCursor = null;
}
Expand Down