From ab2443654948c26330d5db9b04881bb6a4dca11f Mon Sep 17 00:00:00 2001 From: Grigoriy Ivanov Date: Mon, 18 Dec 2023 14:20:57 +0300 Subject: [PATCH] revert this.isSubmit for form_controller.js --- resources/js/controllers/form_controller.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/js/controllers/form_controller.js b/resources/js/controllers/form_controller.js index d39a2766c..974b7ea9d 100644 --- a/resources/js/controllers/form_controller.js +++ b/resources/js/controllers/form_controller.js @@ -51,10 +51,10 @@ export default class extends ApplicationController { return false; } - //if (this.isSubmit) { - // event.preventDefault(); - // return false; - //} + if (this.isSubmit) { + event.preventDefault(); + return false; + } const action = this.loadFormAction(event); @@ -63,7 +63,7 @@ export default class extends ApplicationController { return false; } - //this.isSubmit = true; + this.isSubmit = true; this.animateButton(event); this.needPreventsFormAbandonmentValue = false;