change selection on header selection to provide 1 selection not 1 million (#2757)

This commit is contained in:
Anthony Dresser
2018-10-05 11:25:28 -07:00
committed by GitHub
parent 004464c699
commit e672fbf6e2
2 changed files with 3 additions and 4 deletions

View File

@@ -56,8 +56,6 @@ export class AdditionalKeyBindings<T> implements Slick.Plugin<T> {
let selectionModel = this.grid.getSelectionModel();
if (selectionModel) {
selectionModel.setSelectedRanges([new Slick.Range(0, 0, this.grid.getDataLength() - 1, this.grid.getColumns().length - 1)]);
} else {
this.grid.setSelectedRows(range(this.grid.getDataLength()));
}
} else {
handled = false;