diff --git a/src/Bridges/FormsLatte/Runtime.php b/src/Bridges/FormsLatte/Runtime.php index 0de03a92b..1e1eb3605 100644 --- a/src/Bridges/FormsLatte/Runtime.php +++ b/src/Bridges/FormsLatte/Runtime.php @@ -68,10 +68,6 @@ public static function renderFormEnd(Form $form, bool $withTags = true): string } } - if (iterator_count($form->getComponents(true, Nette\Forms\Controls\TextInput::class)) < 2) { - $s .= "\n"; - } - return $s . ($withTags ? $form->getElementPrototype()->endTag() . "\n" : ''); } diff --git a/src/Forms/Rendering/DefaultFormRenderer.php b/src/Forms/Rendering/DefaultFormRenderer.php index 64da5e47c..c5745e300 100644 --- a/src/Forms/Rendering/DefaultFormRenderer.php +++ b/src/Forms/Rendering/DefaultFormRenderer.php @@ -205,10 +205,6 @@ public function renderEnd(): string } } - if (iterator_count($this->form->getComponents(true, Nette\Forms\Controls\TextInput::class)) < 2) { - $s .= ''; - } - if ($s) { $s = $this->getWrapper('hidden container')->setHtml($s) . "\n"; }