From 18d3463ad79798852e4bd809e8f29a526fadc093 Mon Sep 17 00:00:00 2001 From: Grigoriy Ivanov Date: Tue, 19 Dec 2023 11:42:08 +0300 Subject: [PATCH] revert this.isSubmit for form_controller.js (#2773) --- 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;