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

Filters connected actions doesn't work as expected #3612

Closed
Evgeny81 opened this issue Aug 28, 2019 · 3 comments
Closed

Filters connected actions doesn't work as expected #3612

Evgeny81 opened this issue Aug 28, 2019 · 3 comments
Labels

Comments

@Evgeny81
Copy link
Contributor

I faced 2 problems with Filters of a List, but I suppose they are linked somehow.

What you were expecting:

  1. Added filters doesn't replace each other.
  2. After new value added to some filter field, pagination per page value doesn't reset to default.

What happened instead:

  1. When I click button "ADD FILTER" new filter field is added to filters, but it replaces previously added filter.
  2. When I choice not default value of per page and change some filter value, per page value resets to default value of 10.

Steps to reproduce:

  1. Click "ADD FILTER" -> Select a possible filter -> It will appear at the filters panel -> Click "ADD FILTER" -> Select a possible filter -> The field replaces previously chosen one.
  2. Choice 5 or 25 rows per page in the pagination area -> Type some value to any filter field -> Rows per page resets to 10

Related code:

https://codesandbox.io/s/mystifying-silence-dvjev

Environment

  • React-admin version: 3.0.0-alpha.2, 3.0.0-alpha.3
  • React version: 16.9.0
  • Browser: Chrome
@djhi
Copy link
Collaborator

djhi commented Sep 2, 2019

Reproduced. Thanks for the report and the sandbox :)

@fzaninotto
Copy link
Member

Fixed by #3634

@Evgeny81
Copy link
Contributor Author

Unfortunately the second problem still exists, pagination resets to default on filter change.

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

No branches or pull requests

3 participants