Skip to content

Commit

Permalink
Form // add early return in case the form is disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrico committed Sep 19, 2023
1 parent 79bdb40 commit 0478372
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Element/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public function submit(array $inputData = []): void
// A disabled form should not change its data upon submission.
if ($this->isDisabled()) {
$this->isSubmitted = true;

return;
}

// We also support as fallback that we send an array which contains
Expand Down

0 comments on commit 0478372

Please sign in to comment.