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;