Skip to content

Commit

Permalink
fix(core): column resize handle could throw when invalid elm (#1344)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding authored Jan 18, 2024
1 parent 64d464c commit 41f6058
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/common/src/core/slickGrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2160,7 +2160,7 @@ export class SlickGrid<TData = any, C extends Column<TData> = Column<TData>, O e
let newWidth;
for (j = 0; j < this.columns.length; j++) {
c = this.columns[j];
if (!c || c.hidden) { continue; }
if (!c || c.hidden || !children[j]) { continue; }
newWidth = children[j].offsetWidth;

if (c.previousWidth !== newWidth && c.rerenderOnResize) {
Expand Down Expand Up @@ -3166,7 +3166,7 @@ export class SlickGrid<TData = any, C extends Column<TData> = Column<TData>, O e
}

/**
* Scroll to an Y position in the grid
* Scroll to an Y coordinate position in the grid
* @param {Number} y
*/
scrollTo(y: number) {
Expand Down

0 comments on commit 41f6058

Please sign in to comment.