Open hirenchauhan2 opened 2 years ago
Upon further checking, I found that the control was already invalid, not sure what was the reason? When I check the the control by inspecting it without focusing on it, I can see it has all values in the object of value
for control. Still not sure why it is behaving like that. Any idea what could be wrong?
I have a form where I'm using this component for taking user's phone number. But, when I use this form for updating existing user details this is not working. All other values are pre-filled for user to update. I'm using a full object to populate the value for phone number instead of just the E.164 format string.
The function to convert string to phone number object looks like this:
And I use this function to patch value to phoneNumber control
This shows the control filled with value
Now, when I just focus on the element and leave the input without modifying anything, I'm getting the error of invalid phone number.
Env: