Skip to content

Using columnClasses causes the page to crash on Internet Explorer 11 #980

@dparasam

Description

@dparasam

Version:
react-bootstrap-table-next@3.1.4
Internet Explorer: 11.1884.14393.0

Description:
If I use columnClasses, the table does not render on Internet Explorer. The error I see is:

TypeError: Object doesn't support property or method 'includes'
{
[functions]: ,
proto: { },
description: "Object doesn't support property or method 'includes'",
message: "Object doesn't support property or method 'includes'",
name: "TypeError",
number: -2146827850,
stack: "TypeError: Object doesn't support property or method 'includes'
<-- snip -->
}

The columnClasses value is set to a function that looks like:

columnClasses(cell, row, rowIndex, colIndex) {
    return colIndex === 0 ? 'style1' : 'style2'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions