From d702078c9b8dc3dc996d53aabad76ee96c107d65 Mon Sep 17 00:00:00 2001 From: Prince Antil Date: Sun, 2 Feb 2020 13:53:54 +0530 Subject: [PATCH] MAG-251090-26590: Fixed Customer registration multiple form submit --- .../Customer/view/frontend/templates/form/register.phtml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/code/Magento/Customer/view/frontend/templates/form/register.phtml b/app/code/Magento/Customer/view/frontend/templates/form/register.phtml index da0bb6e4cbc8b..0defee8b22fe3 100644 --- a/app/code/Magento/Customer/view/frontend/templates/form/register.phtml +++ b/app/code/Magento/Customer/view/frontend/templates/form/register.phtml @@ -198,6 +198,12 @@ require([ ignore: ignore ? ':hidden:not(' + ignore + ')' : ':hidden' }).find('input:text').attr('autocomplete', 'off'); + dataForm.submit(function () { + $(this).find(':submit').attr('disabled', 'disabled'); + }); + dataForm.bind("invalid-form.validate", function () { + $(this).find(':submit').prop('disabled', false); + }); });