Skip to content

Commit cac5961

Browse files
author
Dmitry Drozd
committed
Fixed rendering elements if form is disabled
1 parent bfa84a4 commit cac5961

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
@@ -162,7 +162,7 @@ public function render()
162162

163163
public function disableIfNeeded()
164164
{
165-
if ($this->isDisabled)
165+
if ($this->isDisabled || $this->form->isDisabled())
166166
{
167167
$this->addAttributes(['disabled' => 'disabled']);
168168
}

0 commit comments

Comments
 (0)