Merge pull request #3085 from shubhwebkul/patch-3

Issue #2994 #2973 resolved
This commit is contained in:
Jitendra Singh 2020-05-18 20:50:15 +05:30 committed by GitHub
commit d42069d923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 12 deletions

View File

@ -499,19 +499,17 @@
backToSavedBillingAddress: function () {
this.new_billing_address = false;
this.validateFormAfterAction()
setTimeout(() => {
this.validateForm('address-form');
}, 0);
},
backToSavedShippingAddress: function () {
this.new_shipping_address = false;
this.validateFormAfterAction()
},
validateFormAfterAction: function () {
setTimeout(() => {
this.validateForm('address-form');
}, 0);
}
},
}
});

View File

@ -79,11 +79,11 @@
<div class="mt10 mb10" v-if="address.billing.address_id">
<span class="checkbox fs16 display-inbl">
<input
class="ml0"
type="checkbox"
class="ml0"
id="billing[use_for_shipping]"
name="billing[use_for_shipping]"
@change="validateFormAfterAction"
@change="setTimeout(() => validateForm('address-form'), 0)"
v-model="address.billing.use_for_shipping" />
<span class="ml-5">

View File

@ -206,7 +206,7 @@
v-validate="'required'"
name="shipping[postcode]"
v-model="address.shipping.postcode"
@change="validateForm('address-form')"
@keyup="validateForm('address-form')"
data-vv-as="&quot;{{ __('shop::app.checkout.onepage.postcode') }}&quot;" />
<span class="control-error" v-if="errors.has('address-form.shipping[postcode]')">
@ -498,7 +498,7 @@
name="billing[phone]"
v-validate="'required'"
v-model="address.billing.phone"
@change="validateForm('address-form')"
@keyup="validateForm('address-form')"
data-vv-as="&quot;{{ __('shop::app.checkout.onepage.phone') }}&quot;" />
<span class="control-error" v-if="errors.has('address-form.billing[phone]')">
@ -514,8 +514,8 @@
type="checkbox"
id="billing[use_for_shipping]"
name="billing[use_for_shipping]"
@change="validateFormAfterAction"
v-model="address.billing.use_for_shipping" />
v-model="address.billing.use_for_shipping"
@change="setTimeout(() => validateForm('address-form'), 0)" />
<span class="ml-5">
{{ __('shop::app.checkout.onepage.use_for_shipping') }}