Skip to content

Commit

Permalink
Set checkbox default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Mar 3, 2021
1 parent ac3c5b2 commit 213f25c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/forms/src/Components/Checkbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@
class Checkbox extends Field
{
use Concerns\CanBeAutofocused;

public function __construct($name)
{
parent::__construct($name);

$this->default(false);
}
}

0 comments on commit 213f25c

Please sign in to comment.