We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ec47c3 commit 0e8c61cCopy full SHA for 0e8c61c
projects/packages/forms/src/modules/field-phone/view.js
@@ -66,12 +66,12 @@ const { actions } = store( NAMESPACE, {
66
context.phoneCountryCode = asYouTypes[ fieldId ].getCountry();
67
context.phoneNumber = asYouTypes[ fieldId ].getNationalNumber();
68
asYouTypes[ fieldId ] = new AsYouType( context.phoneCountryCode );
69
+ context.countryPrefix = countries.find(
70
+ item => item.code === context.phoneCountryCode
71
+ )?.value;
72
} else {
73
context.phoneNumber = value;
74
}
- context.countryPrefix = countries.find(
- item => item.code === context.phoneCountryCode
- )?.value;
75
context.fullPhoneNumber = context.countryPrefix + ' ' + context.phoneNumber;
76
actions.updateField( fieldId, value );
77
},
0 commit comments