Open DevTiago opened 2 years ago
same problem with isoCode 'EG', 'ARG' but not with all isocodes
I come across with same issue, and I predict the issue is due to some logic behind trigger the redraw of the widget, while initialValue and onChange also point to same variable "number", then the text cursor will jump to an incorrect place.
My work around is using a separated variable for "initialValue: numberForInitialOnly" and onChange event remain unchanged. The problem seem to be not happen again
Same problem, when I initialised initialValue with both isoCode
and phoneNumber
, could not clear or re-type the number, The text cursor goes to the beginning of input.
InternationalPhoneNumberInput(
...,
initialValue: PhoneNumber(isoCode: 'NZ', phoneNumber: '0213456789') ,
...,
)
Describe the bug Can't change de input value after phone number completed
Package version 0.7.0+2
Flutter version Flutter 3.0.4 • channel stable
To Reproduce Steps to reproduce the behavior:
I have to go back and move to the screen again so the input was cleared and i have the chance to fill the input with the correct number.
Interaction with the widget No further interaction
See error Get no error message, only the impossibility to change or delete the input
Expected behavior It should be available to change or delete the input
Screenshots
At this point the cursor text is on the beginning of the input (the screen don't show it) and i cant change or delete the number.
Targeted platforms (please complete the following information): Android and iOS
Additional context No further info