Mobx form textfield default value not recognized on submit - Reactjs #3118
Unanswered
prajeeshbs
asked this question in
Q&A
Replies: 1 comment
-
It looks like the issue should be addressed to the form library you are using. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The code is as follows
<TextField {...form.$("phone.countryCode").bind()} value={222} />
The form setup is as follows
The value displays correctly in the textfield. But when i submit the form, it shows "required" error.
Is assume field.input.onChange is not triggered when we set the value like this and hence the mobx field is not updated with the value.
Any idea on how to fix this?
Beta Was this translation helpful? Give feedback.
All reactions