question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QuickFilter in List view is replaced by "Save query" in listFilter array when toggled

See original GitHub issue

What 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: QuickFilter bug

Environment

  • React-admin version: 4.0.1
  • React version: 17.0.2
  • Browser: Chrome Version 100.0.4896.60

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
fzaninottocommented, May 2, 2022

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

gif

0reactions
joobaccacommented, May 2, 2022

@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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found