Latest Version Causes the search row and page length to be on 2 rows

Latest Version Causes the search row and page length to be on 2 rows

yakov116yakov116 Posts: 34Questions: 5Answers: 0

Link to test case: @colin you have access to my repository
Debugger code (debug.datatables.net):
Error messages shown: None
Description of problem:
See the picture.

The way it used to be

I am using Bootstrap 4
I have multiple tables on the page the ones that have a DOM option set** do not **have an issue.
Only those that do not have any DOM option set its on 2 lines.

It looks like the "row" css class has been removed. I tried to figure out from your code when that would have changed but could not figure it out.

Let me know if you need more info

Thanks!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    It appears to work okay in the examples (set the styling framework to be Bootstrap 4).

    Can you link to a test case showing the issue please.

    Also, what version are you updating from? 2.0.something to 2.1.2 (current)?

    Allan

  • yakov116yakov116 Posts: 34Questions: 5Answers: 0

    I am always on nighty :smile:

    I invited you to the repository, its too hard for me to do a link.

    The first loaded table has the issue

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin
    Answer ✓

    The cache on the DataTables core and its integration file for the nightly appear to be out of sync. Add an anti-cache parameter:

            <script src="https://nightly.datatables.net/js/dataTables.min.js?123153"></script>
            <script src="https://nightly.datatables.net/js/dataTables.bootstrap4.min.js?123153"></script>
    

    And it should work.

    However, this is evidence that for production you should use the CDN, not nightly files.

    Allan

  • yakov116yakov116 Posts: 34Questions: 5Answers: 0

    Thanks for looking into it!!

    I think this is the first time I have had this issue. Like I said before in my other comment => Here I enjoy the challenge of figuring out what you changed.

    Once I am here I wanted to report that the speed of datatables in V2 has improved 10x.

    Thanks!!!

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    Thank you.

    I spotted a different error in your demo as well. I've committed a fix for that and the nightly will rebuild soon.

    The cache for the nightly is on CloudFlare and it does expire after a certain amount of time, but it is possible for files to be out of sync as such.

    Allan

  • yakov116yakov116 Posts: 34Questions: 5Answers: 0

    Thank you so much!

Sign In or Register to comment.