Skip to content

Commit

Permalink
fix: new lines added
Browse files Browse the repository at this point in the history
  • Loading branch information
tshimber committed Aug 8, 2024
1 parent 40f92e6 commit cb26e71
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/components/src/components/data-grid/data-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,12 @@ export class DataGrid {
this.applyResponsiveClasses = this.applyResponsiveClasses.bind(this);
this.updateColumnStretching = this.updateColumnStretching.bind(this);
}

componentWillLoad() {
this.fieldsHandler();
this.rowsHandler();
}

componentDidRender() {
if (this.needsAutoWidthParse) {
this.calculateAutoWidths();
Expand All @@ -194,6 +196,7 @@ export class DataGrid {
}
});
}

componentDidLoad() {
this.addResizeObserver();
}
Expand All @@ -212,6 +215,7 @@ export class DataGrid {
this.resetSortingToggle();
this.dataNeedsCheck = true;
}

@Watch('rows')
rowsHandler() {
// Reset pagination to the last page of the new records if new records are less than previous.
Expand Down

0 comments on commit cb26e71

Please sign in to comment.