From e61535036669a78bcafb061dcfa46da827fcf377 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Brecher?= <34324008+mildabre@users.noreply.github.com> Date: Sat, 4 May 2024 19:47:39 +0200 Subject: [PATCH] Button: is omitted from values [Closes #330] --- src/Forms/Controls/Button.php | 1 + src/Forms/Controls/SubmitButton.php | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Forms/Controls/Button.php b/src/Forms/Controls/Button.php index 021bbcc7b..4c79f5682 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 470486ad8..5e180138f 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(); }