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: 48Questions: 11Answers: 1

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: 1,726Questions: 0Answers: 318
    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: 48Questions: 11Answers: 1

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

  • colincolin Posts: 1,726Questions: 0Answers: 318

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

  • allanallan Posts: 47,496Questions: 1Answers: 6,751 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: 48Questions: 11Answers: 1

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

  • colincolin Posts: 1,726Questions: 0Answers: 318

    Tbh nor was I :)

  • allanallan Posts: 47,496Questions: 1Answers: 6,751 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

  • ihuangmxihuangmx Posts: 8Questions: 4Answers: 0

    I use the downloader tool to get the datatables code, so I want to know when I can't get the version that include this bug fix

  • allanallan Posts: 47,496Questions: 1Answers: 6,751 Site admin

    The versions available through the download builder and npm both contain this fix. If you are having a problem with it, please link to a test page showing the issue.

    Allan

Sign In or Register to comment.