aimementoring / blueprint

This project defines some standards for all AIME platforms.
5 stars 0 forks source link

fix: error when the user change the country in the phone input component #199

Closed davidpaley closed 4 years ago

davidpaley commented 4 years ago

Here I am fixing an error from the library that we are using for the phone input.

When the user wrote the number for example +54 11 5606 3036 (Argentinian number) and then select another country for the code, the library left the 54 number. So if I select Uruguay for example (which country code number is +598 I would have after select Uruguay this number: +598 (or just the flag selected, not appearing in the input) 54 11 5606 3036. The 54 shouldn't be here because it was from the previous country selection.

In this PR I am fixing that