Skip to content

Commit 1af419a

Browse files
authored
Merge pull request #29 from dmdrozd/master
Fixed rendering elements if form is disabled
2 parents c584b7c + cac5961 commit 1af419a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Form/Element.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function render()
174174

175175
public function disableIfNeeded()
176176
{
177-
if ($this->isDisabled)
177+
if ($this->isDisabled || $this->form->isDisabled())
178178
{
179179
$this->addAttributes(['disabled' => 'disabled']);
180180
}

0 commit comments

Comments
 (0)