misd-service-development / phone-number-bundle

Integrates libphonenumber into your Symfony2-Symfony4 application
459 stars 143 forks source link

Support `default_region` for `PhoneNumberType` with option `'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE` #189

Open bigfoot90 opened 6 years ago

bigfoot90 commented 6 years ago

If you use PhoneNumberType and set options

[
    'default_region' => 'IT',
    'widget' => PhoneNumberType::WIDGET_COUNTRY_CHOICE,
]

the country choice come without selected Italy as default country