Skip to content

Commit

Permalink
fix: let onKeyDownEnter be null. #20
Browse files Browse the repository at this point in the history
  • Loading branch information
tanthammar committed Sep 28, 2020
1 parent 992c60b commit 571a64a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
class Form extends Component
{
public array $attr;
public string $onKeyDownEnter;
public ?string $onKeyDownEnter;

public function __construct(string $onKeyDownEnter = '', array $attr = [])
public function __construct(?string $onKeyDownEnter = null, array $attr = [])
{
$this->attr = $attr;
$this->onKeyDownEnter = $onKeyDownEnter;
Expand Down

0 comments on commit 571a64a

Please sign in to comment.