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

[Bug] country guess no longer working after country selection

Open whitecrownclown opened this issue 2 years ago • 1 comments

country guess issue.webm

Check the video for more information.

Steps to reproduce:

Follow video OR

  1. type in a number
  2. select another country from the dropdown
  3. try to change the number/prefix and you'll see the country guessing feature is no longer working

whitecrownclown avatar Jun 28 '23 00:06 whitecrownclown

@whitecrownclown how do you do you onChange? do you intentionally prepend + ? if yes, that should have messed up the internal state of the component.

jayjaydluffy avatar Sep 20 '23 16:09 jayjaydluffy