Adding fuzzy search, and not enabling it breaks DataTables.

Adding fuzzy search, and not enabling it breaks DataTables.

MadBoyEvoMadBoyEvo Posts: 119Questions: 38Answers: 0

Link to test case: https://jsfiddle.net/5gaxm0kw/
Description of problem:

If you just add a link at the top to fuzzy search, and not actually enable it within code it will cause DataTables to not initialize properly when it comes to paging.

In the example, I've added 2 tables. In one I've enabled fuzzy search, in other, I didn't. Notice that even tho the paging says 5 entries, it actually shows 6 entries in the 2nd table with a broken responsive table.

Pretty sure it's a bug.

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    edited November 2021

    There's a console error from the plug-in code, so yep, looks like a bug on our end, so we'll take a look. I've raised it internally (DD-2387 for my reference) and we'll report back here when there's an update.

    Cheers,

    Colin

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Answer ✓

    Funnily enough I spotted this on Friday as well, and committed a fix here.

    You can grab the latest code for FuzzySearch from here.

    Allan

  • MadBoyEvoMadBoyEvo Posts: 119Questions: 38Answers: 0

    Thank you. Works great1

Sign In or Register to comment.