I am trying to figure out how to create a button to reset the column filters in PrimeReact Datatable. I am able to click the button and have the sorting be rest on the table, but the value in the column sort filed remains. How do I reset the value too?
I've tried a ton of things, below is the latest attempt...
const resetFilters = () => {
console.log('filters', dt.current.getFilters());
let filters = dt.current.getFilters()
for (const filter in filters){
dt.current.filters = filters[filter].value = '';
}
dt.current.reset();
}
The '3' is not cleared out when dt.current.reset() resets the table filter.
