ra-data-firebase-client
ra-data-firebase-client copied to clipboard
DateTimeInput values cannot be saved
DateInput works fine but DateTimeInput cannot be saved, the field is missing in firebase.
If there's a pre-defined field, it will be removed.
The Posts in the example can be used for reproduction.
The issue is value returned from DateTimeInput is an object and cannot be saved to firebase. Converting it to string is a workaround.
<DateTimeInput
source="joinable_at"
parse={(v) => v.toString()}
required
/>