From f373bcd5ea7a33672fa96035d4bf3110ab66ee44 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 11 Dec 2023 01:27:01 +0100 Subject: [PATCH] typo --- src/Forms/Rendering/DefaultFormRenderer.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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') {