Skip to content

Commit

Permalink
fixup! fixup! Resize idea and mapOverIndexes craziness
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowbas authored and bas080 committed Dec 10, 2024
1 parent c1adc86 commit 296f894
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/accessible-table/accessible-table.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ export class AccessibleTableComponent implements OnDestroy, AfterViewChecked, Af
}

ngAfterViewInit() {
console.log('this.viewport', this.viewport)

this.renderedRangeSub = this.viewport.renderedRangeStream.subscribe(range => {
this.renderedRangeChange.emit(range)
});
Expand All @@ -98,9 +96,6 @@ export class AccessibleTableComponent implements OnDestroy, AfterViewChecked, Af
}

ngOnChanges(changes: SimpleChanges): void {
console.log('changes.rows', changes.rows)
// this.viewport.checkViewportSize()

if (changes.rows) {
if (this.selectedRows.length) this.selectedRowsChange.emit([])

Expand Down Expand Up @@ -181,6 +176,8 @@ export class AccessibleTableComponent implements OnDestroy, AfterViewChecked, Af

if (!checkbox) {
this.selectedRowChange.emit(row)
} else {
this.oneSelect(index, !this.selectedRows[index])
}

this.lastCheckedRow = row
Expand Down

0 comments on commit 296f894

Please sign in to comment.