Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Jul 4, 2024
1 parent 676b76a commit 10281dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
}
}

selectRange(event: MouseEvent | KeyboardEvent, rowIndex: number, isCtrlASelection? : boolean | undefined) {
selectRange(event: MouseEvent | KeyboardEvent, rowIndex: number, isMetaKeySelection? : boolean | undefined) {
let rangeStart, rangeEnd;

if (<number>this.anchorRowIndex > rowIndex) {
Expand All @@ -1871,7 +1871,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable
let rangeRowsData = [];
for (let i = <number>rangeStart; i <= <number>rangeEnd; i++) {
let rangeRowData = this.filteredValue ? this.filteredValue[i] : this.value[i];
if (!this.isSelected(rangeRowData) && !isCtrlASelection) {
if (!this.isSelected(rangeRowData) && !isMetaKeySelection) {
if (!this.isRowSelectable(rangeRowData, rowIndex)) {
continue;
}
Expand Down

0 comments on commit 10281dc

Please sign in to comment.