-
-
Notifications
You must be signed in to change notification settings - Fork 73
Clearing filtering_settings
does not clear the by-column filter fields
#370
Comments
filtering_settings
does not clear the by-column filter fields
Great! Thanks. |
I have dash 1.11.0. The bug seems to be present still. The clearing action doesn't do anything in my code. When I try to run the example above, I get an error saying that 'filtering_settings' is not supported by DataTable. I wonder if other developments happened in the meantime and now the method to clear filters changed? |
Try install newer version(dash 1.19.0 and dash-table 4.11.2) |
@Marc-Andre-Rivet There's no such argument "filtering=True" for DataTable, and if I input that it will get an unexpected keyword argument error and if I don't input, the clear filter won't work at all. |
Not sure if this will catch any eyeballs since it's closed, but I'm still seeing an issue here . . . I have some custom buttons and callbacks that load a saved "view" which includes visible and ordered columns, filter_query and sort_by. If I'm using the filter query input in the UI I don't see any residual text in the input field BUT when switching views from a view with filters to a view with no filters, the filter is correctly executed in the table but I still see the input "ghost" text from the previous view. I have a datatable with an update interval component, and the ghost text appears to show back up on the interval when data is updated. What's even stranger is, I setup a clientside callback with Inputs: interval update and filter_query, which sets the value of the filter query input element to "" when the filter query is currently blank or None, and the ghost text still shows up after flashing blank for a moment. Is this some side effect of React thinking that the component state needs to be restored (since my clientside callback is technically changing the DOM)? I have a feeling about this but I also don't see any output about this in the devtools console. |
It looks like
Just spent an hour reading all the threads on this matter and this is working for me. No mention of So I'm assuming Do correct me if I'm wrong ! |
Yes, |
From community thread.
Clearing the
filtering_settings
does not cause the by-column filter fields to be cleared. The table displays the right data but the fields themselves are showing the previous value.Expected resolution:
filtering_settings
prop causes the filter fields to be cleared in the UIThe text was updated successfully, but these errors were encountered: