Skip to content

Commit

Permalink
Update AjaxSelect.php
Browse files Browse the repository at this point in the history
  • Loading branch information
peldax authored Mar 25, 2019
1 parent 1c85637 commit 9a9e7d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Form/AjaxSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,10 @@ public function __construct(?string $label, callable $callback)
$this->callback = $callback;
parent::__construct($label);
}

public function getValue()
{
$this->setValue($this->value);
return \array_key_exists($this->value, $this->getItems()) ? $this->value : null;
}
}

0 comments on commit 9a9e7d7

Please sign in to comment.