Skip to content

Commit 743e5fa

Browse files
authored
Merge pull request #6 from infinityloop-dev/attribute_support
fixed MultiChoiceControl::setDisabled
2 parents 8662795 + 273826d commit 743e5fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Form/TAjaxSelect.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ private function getData(string $query = '', $default = null) : \Nepttune\Form\R
135135

136136
private function initiateItems($value = null): void
137137
{
138+
if ($this instanceof \Nette\Forms\Controls\MultiChoiceControl) {
139+
$this->value ??= [];
140+
}
141+
138142
$value = $value ?? $this->value;
139143
$data = [];
140144

0 commit comments

Comments
 (0)