-
-
Notifications
You must be signed in to change notification settings - Fork 482
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
Fix typescript typings in FieldProps #619
Conversation
According to [the doc](https://final-form.org/docs/react-final-form/types/FieldProps#parse) the parse prop takes the value from the input (which is typed with `FieldValue`)
Codecov Report
@@ Coverage Diff @@
## master #619 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 17 17
Lines 248 248
Branches 57 57
=====================================
Hits 248 248 Continue to review full report at Codecov.
|
Published in |
Hello. I ran into issue with this PR when I have different type of value in the input than that is stored in the form values. I get following error:
My case converts Moment object to string, but it can be applied to the example from documentation as well:
Does the |
This fix broke everything for us. We do use custom input and the data types used for the input does not necessary mean the form type. Format: formType => inputType Please fix this ASAP |
I agree, @Juansasa. |
Reverted in |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
According to the doc the parse prop takes the value from the input (which is typed with
FieldValue
)