We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5a9fcab + f695643 commit a73f036Copy full SHA for a73f036
app/code/Magento/Customer/view/frontend/templates/form/register.phtml
@@ -301,6 +301,12 @@ require([
301
ignore: ignore ? ':hidden:not(' + ignore + ')' : ':hidden'
302
<?php endif ?>
303
}).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
310
311
});
312
</script>
0 commit comments