Skip to content

Commit 28aa4d3

Browse files
committed
MC-41897: Fix jQuery.fn.bind()
- Change bind deprecated function
1 parent c19a4c3 commit 28aa4d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Customer/view/frontend/web/js/block-submit-on-send.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ define([
2020
}
2121
this.isValid = true;
2222
});
23-
dataForm.bind('invalid-form.validate', function () {
23+
dataForm.on('invalid-form.validate', function () {
2424
$(this).find(':submit').prop('disabled', false);
2525
this.isValid = false;
2626
});

0 commit comments

Comments
 (0)