Skip to content

Commit

Permalink
View/Form // remove "value" from being rendered as <form> attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrico committed Sep 19, 2023
1 parent 0478372 commit 7bdbb76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/View/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <form>-tag.
unset($attributes['type']);
// Don't re-use the "type" and "value" as attribute on <form>-tag.
unset($attributes['type'], $attributes['value']);
$classes = (string) ($attributes['class'] ?? '');
$classes .= 'form';
$attributes['class'] = $classes;
Expand Down

0 comments on commit 7bdbb76

Please sign in to comment.