From 7cf09f56acfadf53bed6d2b12ecbf83b235b864a Mon Sep 17 00:00:00 2001 From: Shubham Mehrotra Date: Mon, 18 May 2020 14:44:13 +0530 Subject: [PATCH] remove extra changes --- .../src/Resources/views/shop/checkout/onepage.blade.php | 8 +++----- .../views/shop/checkout/onepage/customer-info.blade.php | 2 +- .../shop/checkout/onepage/customer-new-form.blade.php | 2 +- 3 files changed, 5 insertions(+), 7 deletions(-) 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" />