-
-
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
BooleanInput with default value false not working #6269
Labels
Comments
It seems to work on the codesandbox. Did I miss something? |
@djhi After setting the filter I would expect the list to contain only items where commentable is false (X) |
Nevermind, reproduced it this time |
Thanks for the report |
fzaninotto
added a commit
that referenced
this issue
Jun 8, 2021
ogustavo-pereira
pushed a commit
to ogustavo-pereira/react-admin
that referenced
this issue
Nov 23, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What you were expecting:
If I add a new BooleanInput Filter with default value
false
on a List, I'd expect the list to filter for falsy attributes when adding the filter.What happened instead:
The list stays the same and still lists items with true and false values.
Steps to reproduce:
Add a BooleanInput with defaultValue
false
Select the Input on `Add Filters'.
Related code:
CodeSandbox example:
https://codesandbox.io/s/magical-field-e32pv?file=/src/posts/PostList.tsx:959-1069
Environment
The text was updated successfully, but these errors were encountered: