QuickFilter in List view is replaced by "Save query" in listFilter array when toggled
See original GitHub issueWhat you were expecting: When using QuickFilters (as described as here), the toggling via the “Add Filter” button should work. The toggled QuickFilter option should disappear from the “Add Filter” dropdown.
What happened instead: After I have enabled the quick filter, the dropdown of the “Add Filter” button shows a new entry instead of the activated QuickFilter, which shows the “Save current query” function even though it is not explicitely enabled anywhere.
Steps to reproduce: The bug is reproducible in the default RA CodeSandbox of v4
Related code:
const postFilter = [
<SearchInput source="q" alwaysOn />,
<TextInput source="title" defaultValue="Qui tempore rerum et voluptates" />,
<QuickFilter
label="resources.posts.fields.commentable"
source="commentable"
defaultValue
/>,
];
Other information:
Environment
- React-admin version: 4.0.1
- React version: 17.0.2
- Browser: Chrome Version 100.0.4896.60
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Save and use filters in a list view
Creates a group filter, which only members of the user group you select can access. This option is available to users with the...
Read more >React-admin - The List View
The List View. The List view displays a list of records fetched from the API, and allows users to filter, sort, select, and...
Read more >iteraplan 6.5 Documentation
The quick filter works in addition to the list filter dialog. ... The Combi Create button in the List view of Business Mappings...
Read more >Flow filter query multiple conditions - Sport Castellano Reports
To simplify searching in a array of objects like a SQL query, ... Those actions can be: saving data into a SharePoint List;...
Read more >Release History - SQL Workbench/J
The list of shortcut keys can now be exported (with the usual "Save As" formats) ... It was not possible to change the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ah, right: The GIF from the documentation that you pointed does indeed need to be updated.
https://marmelab.com/react-admin/FilteringTutorial.html#quick-filters
@fzaninotto The filter “Tagged Code” is added, then “Low views”, after the user hovers over the active chips in the List. Here the GIF I was referring to, to avoid misunderstandings