Skip to content

Commit

Permalink
Phone field requesting focus after country selected. Closes #302
Browse files Browse the repository at this point in the history
Solution for issue: #302
  • Loading branch information
gsusI committed Jun 5, 2020
1 parent 6d2d810 commit 7d60e26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/fields/form_builder_phone_field.dart
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ class FormBuilderPhoneFieldState extends State<FormBuilderPhoneField> {
onValuePicked: (Country country) {
setState(() => _selectedDialogCountry = country);
_invokeChange(field);
widget.focusNode?.requestFocus();
},
itemFilter: widget.countryFilterByIsoCode != null
? (c) => widget.countryFilterByIsoCode.contains(c.isoCode)
Expand Down

0 comments on commit 7d60e26

Please sign in to comment.