diff --git a/src/Forms/Controls/Button.php b/src/Forms/Controls/Button.php index 021bbcc7..4c79f568 100644 --- a/src/Forms/Controls/Button.php +++ b/src/Forms/Controls/Button.php @@ -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(); } diff --git a/src/Forms/Controls/SubmitButton.php b/src/Forms/Controls/SubmitButton.php index 470486ad..5e180138 100644 --- a/src/Forms/Controls/SubmitButton.php +++ b/src/Forms/Controls/SubmitButton.php @@ -35,7 +35,6 @@ public function __construct(string|Stringable|null $caption = null) { parent::__construct($caption); $this->control->type = 'submit'; - $this->setOmitted(); }