ClearAll button in searchpanes deletes only one filter for the first time

ClearAll button in searchpanes deletes only one filter for the first time

sridhar5sridhar5 Posts: 3Questions: 1Answers: 0

Link to test case: https://datatables.net/extensions/searchpanes/examples/initialisation/cascadePanes.html
Debugger code (debug.datatables.net):
Error messages shown: No error messages
Description of problem: In the above example if we select multiple filters and click on ClearAll button it is removing only one filter for the first click and if we click it again then all the remaining filters are being removed. Is this normal behavior? My requirement is to remove all the search pane filters with one click of the Clear All button.
I have even tried using searchPanes.clearSelections(). But even that is behaving like Clear All buton.

This question has an accepted answers - jump to answer

Answers

  • sridhar5sridhar5 Posts: 3Questions: 1Answers: 0

    Adding a test case
    http://live.datatables.net/jiyigamu/3/edit

    This issue happens only when I set CascadePanes to true.
    Any help is appreciated.

  • sandysandy Posts: 913Questions: 0Answers: 236

    Hi @sridhar5 ,

    Thanks for pointing that out - something isn't right there. I've raised an issue internally (DD-2033 for my reference) and will report back here when there is an update.

    Thanks,
    Sandy

  • sandysandy Posts: 913Questions: 0Answers: 236
    Answer ✓

    Hi @sridhar5 ,

    That should be the issue fixed now. This will be available in the next SearchPanes release which we hope will be in the next few weeks. Until then you can access the fix from the nightly builds.

    Thanks,
    Sandy

  • sridhar5sridhar5 Posts: 3Questions: 1Answers: 0

    Hi @sandy

    Thanks for quick follow up. The issue is fixed now.

Sign In or Register to comment.