From 325372abcd88d19be4279a5c33896e3ac0dd7b15 Mon Sep 17 00:00:00 2001 From: David Grudl Date: Sat, 16 Sep 2023 11:48:07 +0200 Subject: [PATCH] removed fix for IE --- src/Bridges/FormsLatte/Runtime.php | 4 ---- src/Forms/Rendering/DefaultFormRenderer.php | 4 ---- 2 files changed, 8 deletions(-) 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"; }