Greetings all.
First of all, I wanted to thank you for react-admin.
About problem. I faced with moment when filter disappears (from Filter panel) after clearing the value after returning to the page/refresh page.
What you were expecting:
displayedFilters will contain information about current filter.
What happened instead:
displayedFilters is empty.
Steps to reproduce:
How it looks you can check in RA example
Related code:
In my project I have Author filter. When I add this filter from list (Add filter) I got this
displayedFilters: {authorId: true}
filterValues: {}
It's correct. I select some Author and now props look like
displayedFilters: {authorId: true}
filterValues: {authorId: Array(1)}
It looks correct too.
But if I refresh page (or open view page and return back) I have this props
displayedFilters: {}
filterValues: {authorId: Array(1)}
And because of displayedFilters is empty when I remove value filter is disappears.
Because of this, the user has trouble when they just want to delete the current value and enter another to select a different author.
Environment
Reproduced. Thanks for the detailed explanation :+1:
Most helpful comment
Reproduced. Thanks for the detailed explanation :+1: