diff --git a/src/Forms/Rendering/DefaultFormRenderer.php b/src/Forms/Rendering/DefaultFormRenderer.php index c5745e300..c6f63d024 100644 --- a/src/Forms/Rendering/DefaultFormRenderer.php +++ b/src/Forms/Rendering/DefaultFormRenderer.php @@ -131,9 +131,7 @@ class DefaultFormRenderer implements Nette\Forms\FormRenderer */ public function render(Nette\Forms\Form $form, ?string $mode = null): string { - if ($this->form !== $form) { - $this->form = $form; - } + $this->form = $form; $s = ''; if (!$mode || $mode === 'begin') {