How to fix datatable duplication when clicking back or forward buttons ?

How to fix datatable duplication when clicking back or forward buttons ?

Sabaabdoulaye2Sabaabdoulaye2 Posts: 2Questions: 2Answers: 0

I am using HTMX to issue Ajax requests along with js datatables to display some data and it works fine. The issue arises when I navigate through history using the browser forward or back buttons.

I get a DataTables wrapper div nested in another DataTables wrapper div. The table is only displayed once, but the search box and pagination are displayed twice.

I'd be glad if you could help.

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

Sign In or Register to comment.