Skip to content

Commit c81d9a6

Browse files
committed
Remove trimUsername declaration from requirejs-config.js and use path inside template
1 parent 62c1a14 commit c81d9a6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/code/Magento/Customer/view/frontend/requirejs-config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ var config = {
99
checkoutBalance: 'Magento_Customer/js/checkout-balance',
1010
address: 'Magento_Customer/address',
1111
changeEmailPassword: 'Magento_Customer/change-email-password',
12-
trimUsername: 'Magento_Customer/js/trim-username',
1312
passwordStrengthIndicator: 'Magento_Customer/js/password-strength-indicator',
1413
zxcvbn: 'Magento_Customer/js/zxcvbn',
1514
addressValidation: 'Magento_Customer/js/addressValidation'

app/code/Magento/Customer/view/frontend/templates/form/login.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<script type="text/x-magento-init">
4747
{
4848
".field.email": {
49-
"trimUsername": {
49+
"Magento_Customer/js/trim-username": {
5050
"formSelector": "form.form-login"
5151
}
5252
}

0 commit comments

Comments
 (0)