From 7bdbb76b8acaf2c4334787d571c5bf80830d5072 Mon Sep 17 00:00:00 2001 From: Christian Leucht Date: Tue, 19 Sep 2023 14:39:25 +0200 Subject: [PATCH] View/Form // remove "value" from being rendered as
attribute. --- src/View/Form.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/Form.php b/src/View/Form.php index 17fd259..06ace1a 100644 --- a/src/View/Form.php +++ b/src/View/Form.php @@ -57,8 +57,8 @@ static function ($html, ElementInterface $next) use ($element, $row): string { ); $attributes = $element->attributesForView(); - // Don't re-use the "type" as attribute on -tag. - unset($attributes['type']); + // Don't re-use the "type" and "value" as attribute on -tag. + unset($attributes['type'], $attributes['value']); $classes = (string) ($attributes['class'] ?? ''); $classes .= 'form'; $attributes['class'] = $classes;