Skip to content

Commit d702078

Browse files
committed
MAG-251090-26590: Fixed Customer registration multiple form submit
1 parent e6e6725 commit d702078

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
@@ -198,6 +198,12 @@ require([
198198
ignore: ignore ? ':hidden:not(' + ignore + ')' : ':hidden'
199199
<?php endif ?>
200200
}).find('input:text').attr('autocomplete', 'off');
201+
dataForm.submit(function () {
202+
$(this).find(':submit').attr('disabled', 'disabled');
203+
});
204+
dataForm.bind("invalid-form.validate", function () {
205+
$(this).find(':submit').prop('disabled', false);
206+
});
201207

202208
});
203209
</script>

0 commit comments

Comments
 (0)