diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage.blade.php index 059a51832..249aa9983 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage.blade.php @@ -499,15 +499,13 @@ 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); diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage/customer-info.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage/customer-info.blade.php index 7ebc9b9a9..755ad7be9 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage/customer-info.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage/customer-info.blade.php @@ -83,7 +83,7 @@ type="checkbox" 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" /> diff --git a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage/customer-new-form.blade.php b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage/customer-new-form.blade.php index 0761cafab..f2331ccb7 100644 --- a/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage/customer-new-form.blade.php +++ b/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage/customer-new-form.blade.php @@ -514,7 +514,7 @@ type="checkbox" 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" />