[go: up one dir, main page]

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

moment __proto__ disappear #351

Open
dyf2015 opened this issue Dec 17, 2017 · 2 comments
Open

moment __proto__ disappear #351

dyf2015 opened this issue Dec 17, 2017 · 2 comments

Comments

@dyf2015
Copy link
dyf2015 commented Dec 17, 2017

When I use the momentjs field and call form.update, the proto for the moment field is missing.

@foxhound87
Copy link
Owner

Please provide a codesandbox with logging/debug.
Thank you.

@jacobweberbowery
Copy link

I'm running into the same issue as this (and probably this), since I'm trying to use the MUI DatePicker component, which outputs a Moment or other library-specific date object, rather than a string.

Here's an example without MUI:
https://codesandbox.io/s/form-quickstart-forked-35hj6i

Initially it logs the default value I provided when creating the form, which has a Moment prototype. If you click the Update button, I'm calling form.update and passing it a new Moment object. But after the bind method is called again, the resulting value that gets logged no longer has a Moment prototype.

(I'm not displaying any form fields here, to simplify things.)

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

3 participants