-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Filter with nested source does not work correctly #5361
Comments
Using your codesandbox, I added the comment.title to the posts list view, typed "lorem" in the input, and I saw the following data provider call:
This is what I expected. What did you expect? |
I expected that when adding a filter field to the screen (without entering any value), nothing happens to the current list. Instead, a request is sent to This differs from the behavior of adding a filter for a non-nested field — until a filter value is entered, no pre-request is sent. Often the fields of nested filters are named as if it were a field of the current resource and it is difficult to explain to the user why it works differently. Let me know if this behavior is expected for you. |
You're right, it's a bug. Thanks for the report. |
The problem is not solved. |
Reopen a issue? |
Latest version is |
Sorry, probably related to #5559 ? Will be released in |
no, you indicated that you fixed that in 3.9.6 https://github.com/marmelab/react-admin/releases/tag/v3.9.6 I was confused that when I updated the application a couple of weeks ago to 3.9.6 everything worked for me. I was delighted and removed some of the crutches in my backend. Everything worked in the release build. However, when yesterday they began to reassemble the release, the filters again stopped working correctly... |
What you were expecting:
Expected intuitive filter operation, similar to filter operation without nested source
What happened instead:
Instead, when adding a filter to the screen, an extra request is made and the entries are pre-filtered unexpectedly
Steps to reproduce:
Add filter
buttonThis behavior is not observed when using non-nested filters. For me, this behavior has become habitual and correct.
here's a link Codesandbox https://codesandbox.io/s/snowy-forest-2nnoy?file=/src/posts/PostList.js
comment.title
to the Posts list view.Environment
The text was updated successfully, but these errors were encountered: