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

DateTimeInput values cannot be saved #22

Open
deathemperor opened this issue Mar 24, 2021 · 1 comment
Open

DateTimeInput values cannot be saved #22

deathemperor opened this issue Mar 24, 2021 · 1 comment

Comments

@deathemperor
Copy link

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.

@deathemperor
Copy link
Author

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
/>

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

No branches or pull requests

1 participant