react-phone-input icon indicating copy to clipboard operation
react-phone-input copied to clipboard

Default value

Open mohamedtijani opened this issue 8 years ago • 1 comments

How to add a default value

mohamedtijani avatar Apr 04 '17 13:04 mohamedtijani

It is added via:

<ReactPhoneInput value="..." />

There is an issue in that if you change the state of the component it is in then it won't get the updated value. It would appear a change need to be made to componentWillReceiveProps() function to accept an update value. See issue #40

ajmas avatar Apr 17 '17 16:04 ajmas