Small bug on Fixed Column Bootstrap 4 when adding table-sm

Small bug on Fixed Column Bootstrap 4 when adding table-sm

dan@19ideas.comdan@19ideas.com Posts: 17Questions: 4Answers: 0

When I initialize my fixedColumns on datatables with the following options:

 DataTable(
        {
          scrollX: true,
          scrollCollapse: true,
          fixedColumns: true
        }

Everything works, but when I add table-sm to my table:

<table class="table table-sm table-bordered nowrap" >

the bootstrap order arrow shows up within the cell. I tested this with multiple records, and this only occurs on the first record only.

Answers

  • colincolin Posts: 785Questions: 0Answers: 151

    Hi @dan@19ideas.com ,

    That one has actually been fixed, you just need to grab the nightly builds for the fix before it gets officially released. Here's the problem reproduced, and here again fixed with those nightly builds.

    Cheers,

    Colin

  • dan@19ideas.comdan@19ideas.com Posts: 17Questions: 4Answers: 0

    Is this versioned? I'm grabbing the packages via npm..

  • colincolin Posts: 785Questions: 0Answers: 151

    I don't believe so, I'll check.

  • allanallan Posts: 46,102Questions: 1Answers: 6,387 Site admin
    edited May 18

    The npm packages are versions, but what Colin was meaning was that the fix hasn't yet been tagged and released. It will be included in 1.10.17 which will be before the end of the month (at least - that's the plan!).

    If you install datatables.net-bs4@08272535735377e98158d87e02fb0e91246e2202 via npm, that will pull the latest commit (at the time of writing this) which contains the fix.

    Allan

Sign In or Register to comment.