Issue after upgrade 1.13 bs5

Issue after upgrade 1.13 bs5

WarbounthoWarbountho Posts: 17Questions: 7Answers: 0

Hello,

After i have upgraded, i cannot filter anymore my bs5 datatables.

Anyone with the same issue?

Thank you!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Can you show me how you are loading and using DataTables (i.e. the initialisation code)? If you can link to a test page showing the issue, that would be really useful.

    Also, I just noticed that 1.13.0 for DataTables core was not released until a few minutes ago. So it might be that you need to update the datatables.net package to 1.13.0. Sorry about that.

    Allan

  • WarbounthoWarbountho Posts: 17Questions: 7Answers: 0

    Np, i updated the core, but i always have the issue.
    I also noticed that i have the same issue if i order a column.

    All my tables are ajax sourced.

    I don't have a link sorry. :/

    But i read here:

    https://github.com/DataTables/Dist-DataTables-Bootstrap5/blob/483543c33326a08db97af9f48b318b814ac75c72/js/dataTables.bootstrap5.js#L181

    var paginationAttr = paginationEl.length > 0 ? paginationEl.attr() : {'class': 'pagination'};

    .attr() without attribute name?

    Thanks!

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Got it now. Thanks for flagging this up! I've committed a fix to address this. I'll get a 1.13.1 release out in about an hour.

    Allan

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Answer ✓

    That's 1.13.1 available on NPM. It isn't in our download builder yet, but will be soon.

    Allan

  • reno5022reno5022 Posts: 1Questions: 0Answers: 0
    edited November 2022

    disregard this post. Thank you for the fix and your work Allan!

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin

    Awesome - good to hear that did the job :)

  • WarbounthoWarbountho Posts: 17Questions: 7Answers: 0

    Everything working fine and all cypress tests passed, big thank you to you allan and thanks for the hard work you put in DataTables, it's cool you share that with your community :)

Sign In or Register to comment.