You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to pre-fill the phone input field from the props, but when I apply the value with a setState() in the componentDidMount() of my component, the isValidNumber function returns false and my validation is not done.
I can't call the method this.phone.current.setState({}) because it's undefined in the componentDidMount()
What can I do?
Thank you in advance for your answer
The text was updated successfully, but these errors were encountered:
Hi,
I try to pre-fill the phone input field from the props, but when I apply the value with a setState() in the componentDidMount() of my component, the isValidNumber function returns false and my validation is not done.
I can't call the method this.phone.current.setState({}) because it's undefined in the componentDidMount()
What can I do?
Thank you in advance for your answer
The text was updated successfully, but these errors were encountered: