diff --git a/lib/country_code_picker.dart b/lib/country_code_picker.dart index e7733c5..05e23ca 100644 --- a/lib/country_code_picker.dart +++ b/lib/country_code_picker.dart @@ -135,6 +135,7 @@ class _CountryCodePickerState extends State { @override void didUpdateWidget(CountryCodePicker oldWidget) { + super.didUpdateWidget(oldWidget); if(oldWidget.initialSelection != widget.initialSelection) { if (widget.initialSelection != null) { selectedItem = elements.firstWhere(