Search Builder Clearl All Disappears
Search Builder Clearl All Disappears
In this example, I have the searchBuilder and a Reset Search Builder button, which clears everything from the SearchBuilder: https://live.datatables.net/befiyura/1/edit
However, the built in Clear All buttons of the SearchBuilder disappears with following steps:
1) Click on Add Condition -> Clear All Button is there
2) Click on Reset Search Builder
3) Click on Add Condition again -> Clear All Button is no longer there
Add more conditions and the button does not appear
If I click on Reset Search Builder again, the Clear All Button comes back, but the Search Builder is not cleared so I need to click on Reset Search Builder again.
Is there an issue with table.searchBuilder.rebuild({}); as my understanding was that it clears the SearchBuilder?
Answers
table.searchBuilder.rebuild(); instead of table.searchBuilder.rebuild({}); seems to resolve it.
Thanks for catching that and letting me know about it. That's [it fixed here](
master
https://github.com/DataTables/SearchBuilder/commit/c8fb78a08f29e9443a139f818e6b78e9bc46a722) and it will be in the nightly in a few minutes and in the next releaseAllan