Skip to content

Commit c4f1738

Browse files
authored
Merge pull request #5361 from joy2fun/fix-double-submission
Prevent double submission
2 parents 0ba9c91 + cd44620 commit c4f1738

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Actions/Interactor/Form.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,9 @@ public function addScript()
526526
Object.assign(data, {$parameters});
527527
{$this->action->actionScript()}
528528
$('#'+modalId).modal('show');
529+
$(':submit', '#'+modalId).button('reset');
529530
$('#'+modalId+' form').off('submit').on('submit', function (e) {
531+
$(':submit', e.target).button('loading');
530532
e.preventDefault();
531533
var form = this;
532534
{$this->buildActionPromise()}

0 commit comments

Comments
 (0)