Skip to content

Commit 5474005

Browse files
Jameel99mportuga
authored andcommitted
Update ui-grid-column-resizer.js
fix: added comments to the fix made for col undefined js error
1 parent 62062f7 commit 5474005

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/resize-columns/src/js/ui-grid-column-resizer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@
120120
// Get the column to the left of this one
121121
var colIndex = renderContainer.visibleColumnCache.indexOf(col);
122122
if (colIndex === 0) {
123+
//set visibleColumnCache to 0 if colIndex is 0
123124
return renderContainer.visibleColumnCache[0];
124125
}
125126
return renderContainer.visibleColumnCache[colIndex - 1 * rtlMultiplier];

0 commit comments

Comments
 (0)