Skip to content

Commit e615350

Browse files
mildabredg
authored andcommitted
Button: is omitted from values [Closes #330]
1 parent b8d45e8 commit e615350

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

src/Forms/Controls/Button.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ public function __construct(string|Stringable|null $caption = null)
2323
parent::__construct($caption);
2424
$this->control->type = 'button';
2525
$this->setOption('type', 'button');
26+
$this->setOmitted();
2627
}
2728

2829

src/Forms/Controls/SubmitButton.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public function __construct(string|Stringable|null $caption = null)
3535
{
3636
parent::__construct($caption);
3737
$this->control->type = 'submit';
38-
$this->setOmitted();
3938
}
4039

4140

0 commit comments

Comments
 (0)