File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
app/code/Magento/Checkout/view/frontend/web/js/view/form/element Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ define([
53
53
isCustomerLoggedIn : customer . isLoggedIn ,
54
54
forgotPasswordUrl : window . checkoutConfig . forgotPasswordUrl ,
55
55
emailCheckTimeout : 0 ,
56
+ emailInputId : '#customer-email' ,
56
57
57
58
/**
58
59
* Initializes regular properties of instance.
@@ -108,6 +109,8 @@ define([
108
109
checkEmailAvailability : function ( ) {
109
110
this . validateRequest ( ) ;
110
111
this . isEmailCheckComplete = $ . Deferred ( ) ;
112
+ // Clean up errors on email
113
+ $ ( this . emailInputId ) . removeClass ( 'mage-error' ) . parent ( ) . find ( '.mage-error' ) . remove ( ) ;
111
114
this . isLoading ( true ) ;
112
115
this . checkRequest = checkEmailAvailability ( this . isEmailCheckComplete , this . email ( ) ) ;
113
116
You can’t perform that action at this time.
0 commit comments