natintosh / intl_phone_number_input

MIT License
164 stars 496 forks source link

remove initialiseWidget from didUpdateWidget #344

Closed Xygnite closed 2 years ago

Xygnite commented 2 years ago

initialiseWidget on didUpdateWidget was causing a problem on my current private project, its behavior keep changing the currently selected country when i try to use initialValue as can be seen below:

https://user-images.githubusercontent.com/38610537/190133826-5b598192-982a-4ac3-9d91-dc7795a8c422.mp4

(could only get this much of a screen view since it's a private project, but hopefully this will explain the behavior)