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: 20Questions: 5Answers: 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.

This question has accepted answers - jump to:

Answers

  • colincolin Posts: 875Questions: 0Answers: 168
    Answer ✓

    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: 20Questions: 5Answers: 0

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

  • colincolin Posts: 875Questions: 0Answers: 168

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

  • allanallan Posts: 46,189Questions: 1Answers: 6,410 Site admin
    edited May 18 Answer ✓

    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

  • dan@19ideas.comdan@19ideas.com Posts: 20Questions: 5Answers: 0

    Thanks guys, I wasn't aware of the way versions are done.

  • colincolin Posts: 875Questions: 0Answers: 168

    Tbh nor was I :)

  • allanallan Posts: 46,189Questions: 1Answers: 6,410 Site admin

    That references a specific git commit. I wonder what would happen if I put that in as a tag though... (I'm not going to try it to find out!).

    You can use either a specific commit to get the tree at that point, or use a tag that has been explicitly added. We tend to just use semver tags.

    Allan

Sign In or Register to comment.