jackocnr / intl-tel-input

A JavaScript plugin for entering and validating international telephone numbers
https://intl-tel-input.com
MIT License
7.38k stars 1.93k forks source link

Add setting initial values in react component #1595

Closed KalvinHom closed 2 months ago

KalvinHom commented 2 months ago

Updates the react component to call the onChange for number and country when there's an initial value set.

https://github.com/jackocnr/intl-tel-input/issues/1591

jackocnr commented 2 months ago

Thanks for putting this together. The problem with this was that it wasn't calling onChangeValidity or onChangeErrorCode. In the end I found a slightly different solution.