Skip to content

Commit 119e056

Browse files
authored
Merge pull request #37 from dmdrozd/master
Fixed form validation
2 parents d0f15b4 + 7c9542f commit 119e056

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ public function getElements($names = null)
439439

440440
public function validate($force = false)
441441
{
442-
if (!$this->isSubmitted() && !$force)
442+
if ($this->isDisabled() || (!$force && !$this->isSubmitted()))
443443
{
444444
return false;
445445
}

0 commit comments

Comments
 (0)