Skip to content

Commit

Permalink
fix(default-theme): SwAddressForm.vue country validation (#1976)
Browse files Browse the repository at this point in the history
Set the correct property to validate in the form
  • Loading branch information
bitfactory-oussama-fadlaoui committed Feb 3, 2023
1 parent 43b7177 commit 2dadc33
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/default-theme/src/components/forms/SwAddressForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,10 @@
v-model="addressModel.countryId"
:label="$t('Country')"
:error-message="$t('Country must be selected')"
:valid="!$v.address.country.$error"
:valid="!$v.address.countryId.$error"
required
class="sf-select--underlined sw-form__input sf-component-select--underlined sw-select"
@blur="$v.address.country.$touch()"
@blur="$v.address.countryId.$touch()"
>
<SfComponentSelectOption
v-for="countryOption in getCountries"
Expand Down Expand Up @@ -269,7 +269,7 @@ export default {
zipcode: {
required,
},
country: {
countryId: {
required,
},
phoneNumber: {
Expand Down

0 comments on commit 2dadc33

Please sign in to comment.