Skip to content

Commit 0478372

Browse files
author
Christian Leucht
committed
Form // add early return in case the form is disabled.
1 parent 79bdb40 commit 0478372

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Element/Form.php

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public function submit(array $inputData = []): void
4949
// A disabled form should not change its data upon submission.
5050
if ($this->isDisabled()) {
5151
$this->isSubmitted = true;
52+
53+
return;
5254
}
5355

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

0 commit comments

Comments
 (0)