-
-
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
feat: unix boolean prop for DateField
#9061
Conversation
Thanks! As it's a new feature, please rebase your PR against the |
Co-authored-by: Jean-Baptiste Kaiser <jbaptiste.kaiser@gmail.com>
…`<ReferenceInput>`
…tion into account
`record` is guaranteed to not be `undefined`, as there’s a falsey check on line 30. It also must return a viable ReactNode that can be rendered.
Matches changes implemented in marmelab#8964
Cast field.value passed to checked prop in boolean, to avoid checked prop to be <empty string> in BooleanInput
519a340
to
144ba09
Compare
I don't get this. It seems to me it already works. In this sandbox (https://stackblitz.com/edit/github-v5fmzn?file=src%2Fdata.tsx), I changed the dates in the |
This is already working since react-admin 4.11 (see #8863) |
This adds a
unix
boolean prop to theDateField
component that will multiple a field value by 1000, assuming it is a number.