Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The FilterButton is present with all filters children having the alwaysOn option being set #7689

Closed
soullivaneuh opened this issue May 14, 2022 · 1 comment · Fixed by #7691
Assignees
Labels

Comments

@soullivaneuh
Copy link
Contributor

What you were expecting:

When I have all my filter being show by default:

const UserFilter: FC<Omit<FilterProps, 'children'>> = (props) => (
  <Filter {...props}>
    <SearchInput source="$search" alwaysOn />
    <BooleanInput source="isDriver" label="Chauffeur" alwaysOn />
  </Filter>
);

The additional filter button should not appears.

What happened instead:

The button appears with an obvious empty filter list, making it useless.

Steps to reproduce:

Checkout the following PR and start the application.

Related code:

soullivaneuh/react-admin-sandbox#2

Other information:

Environment

  • React-admin version: 4.0.3
  • Last version that did not exhibit the issue (if applicable): 3.19.7
  • React version: 18.1.0
@fzaninotto fzaninotto added the bug label May 15, 2022
@fzaninotto
Copy link
Member

Reproduced, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants