Skip to content

Commit 9a9e7d7

Browse files
authored
Update AjaxSelect.php
1 parent 1c85637 commit 9a9e7d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Form/AjaxSelect.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,10 @@ public function __construct(?string $label, callable $callback)
2525
$this->callback = $callback;
2626
parent::__construct($label);
2727
}
28+
29+
public function getValue()
30+
{
31+
$this->setValue($this->value);
32+
return \array_key_exists($this->value, $this->getItems()) ? $this->value : null;
33+
}
2834
}

0 commit comments

Comments
 (0)