You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug description:
When used in a Form, InternationalPhoneNumberInput triggers Form.onChanged event on first load itself, with a non-null initialValue. This results in marking the form as dirty and prevents us from providing a meaningful warning to user about saving a modified form before existing the screen.
Expected behavior
Form.onChanged should be triggered only when the user explicitly change the phone number (either country code or the phone number itself)
** Targeted platforms (please complete the following information):**
Web [✔]
The text was updated successfully, but these errors were encountered:
Bug description:
When used in a Form, InternationalPhoneNumberInput triggers Form.onChanged event on first load itself, with a non-null initialValue. This results in marking the form as dirty and prevents us from providing a meaningful warning to user about saving a modified form before existing the screen.
Package version
intl_phone_number_input: ^0.7.4
Flutter version
Flutter 3.22.2 • channel stable
Tools • Dart 3.4.3 • DevTools 2.34.3
To Reproduce
Add the following to index.html
Execute the following code for Web.
Expected behavior
Form.onChanged should be triggered only when the user explicitly change the phone number (either country code or the phone number itself)
** Targeted platforms (please complete the following information):**
The text was updated successfully, but these errors were encountered: