Skip to content

Commit

Permalink
Fix bug missing setting setOmitted(true) in Button.php
Browse files Browse the repository at this point in the history
If form is submitted with standard SubmitButton and in the form is another button Button, the attribute name + value appears in $values of the form. This is undesirable behaviour and my proposal fixes this bug.
  • Loading branch information
mildabre authored May 4, 2024
1 parent 2146e59 commit 7b84db8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Forms/Controls/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public function __construct(string|Stringable|null $caption = null)
parent::__construct($caption);
$this->control->type = 'button';
$this->setOption('type', 'button');
$this->setOmitted(true);
}


Expand Down

0 comments on commit 7b84db8

Please sign in to comment.