From 213f25c7fb9fa3ca996143c469c417b10de5bb42 Mon Sep 17 00:00:00 2001 From: Dan Harrin Date: Wed, 3 Mar 2021 10:20:30 +0000 Subject: [PATCH] Set checkbox default to false --- packages/forms/src/Components/Checkbox.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/forms/src/Components/Checkbox.php b/packages/forms/src/Components/Checkbox.php index aefd19b8787..fd01e18b0b3 100644 --- a/packages/forms/src/Components/Checkbox.php +++ b/packages/forms/src/Components/Checkbox.php @@ -5,4 +5,11 @@ class Checkbox extends Field { use Concerns\CanBeAutofocused; + + public function __construct($name) + { + parent::__construct($name); + + $this->default(false); + } }