Skip to content

Commit a73f036

Browse files
ENGCOM-7034: MAG-251090-26590: Fixed Customer registration multiple form submit #26642
- Merge Pull Request #26642 from antilprince/magento2:MAG-251090-26590 - Merged commits: 1. d702078 2. f695643
2 parents 5a9fcab + f695643 commit a73f036

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,12 @@ require([
301301
ignore: ignore ? ':hidden:not(' + ignore + ')' : ':hidden'
302302
<?php endif ?>
303303
}).find('input:text').attr('autocomplete', 'off');
304+
dataForm.submit(function () {
305+
$(this).find(':submit').attr('disabled', 'disabled');
306+
});
307+
dataForm.bind("invalid-form.validate", function () {
308+
$(this).find(':submit').prop('disabled', false);
309+
});
304310

305311
});
306312
</script>

0 commit comments

Comments
 (0)