diff --git a/lib/country_code_picker.dart b/lib/country_code_picker.dart index a2d82a7..7492968 100644 --- a/lib/country_code_picker.dart +++ b/lib/country_code_picker.dart @@ -161,7 +161,7 @@ class CountryCodePickerState extends State { Widget internalWidget; if (widget.builder != null) { internalWidget = InkWell( - onTap: showCountryCodePickerDialog, + onTap: widget.enabled ? showCountryCodePickerDialog : null, child: widget.builder!(selectedItem), ); } else {