Skip to content

Commit

Permalink
Merge pull request #6 from infinityloop-dev/attribute_support
Browse files Browse the repository at this point in the history
fixed MultiChoiceControl::setDisabled
  • Loading branch information
peldax authored Jul 24, 2020
2 parents 8662795 + 273826d commit 743e5fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Form/TAjaxSelect.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ private function getData(string $query = '', $default = null) : \Nepttune\Form\R

private function initiateItems($value = null): void
{
if ($this instanceof \Nette\Forms\Controls\MultiChoiceControl) {
$this->value ??= [];
}

$value = $value ?? $this->value;
$data = [];

Expand Down

0 comments on commit 743e5fa

Please sign in to comment.