Skip to content

Commit

Permalink
revert this.isSubmit for form_controller.js
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriy-ivanov authored Dec 18, 2023
1 parent 9373e75 commit ab24436
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions resources/js/controllers/form_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -63,7 +63,7 @@ export default class extends ApplicationController {
return false;
}

//this.isSubmit = true;
this.isSubmit = true;
this.animateButton(event);

this.needPreventsFormAbandonmentValue = false;
Expand Down

0 comments on commit ab24436

Please sign in to comment.