Group header with columns which width is defined as number throws an exception #3020
Labels
🐛 bug
Any issue that describes a bug
🧨 severity: medium
grid: general
grid: multi-column-headers
version: 6.2.x
✅ status: resolved
Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Description
Group Header causes an error when the columns' width is a number
Steps to reproduce
Result
The columns are not shown and there is an error in the console:
"ERROR TypeError: val.width.indexOf is not a function"
Expected result
The columns are shown with multi column header and there is no error.
Note:
In projects\igniteui-angular\src\lib\grids\column.component.ts
the check expects a string although the columns widths in the sample are defined as numbers. Perhaps a cast to string can be added before the '%' check
The text was updated successfully, but these errors were encountered: