Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Commit

Permalink
Merge pull request #445 from nmichaud/selection-overlay
Browse files Browse the repository at this point in the history
Don't do header highlighting when selectionMode is row or column
  • Loading branch information
sccolbert authored Oct 26, 2019
2 parents 6ee4937 + 9c0b56f commit 5d86cf8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/datagrid/src/datagrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4496,8 +4496,8 @@ class DataGrid extends Widget {
// Fetch the selection model.
let model = this._selectionModel;

// Bail early if there are no selections.
if (!model || model.isEmpty) {
// Bail early if there are no selections or if the selectionMode is the entire column.
if (!model || model.isEmpty || model.selectionMode == 'column') {
return;
}

Expand Down Expand Up @@ -4597,8 +4597,8 @@ class DataGrid extends Widget {
// Fetch the selection model.
let model = this._selectionModel;

// Bail early if there are no selections.
if (!model || model.isEmpty) {
// Bail early if there are no selections or if the selectionMode is the entire row
if (!model || model.isEmpty || model.selectionMode == 'row') {
return;
}

Expand Down

0 comments on commit 5d86cf8

Please sign in to comment.