Compare commits
No commits in common. "6020fa300d716be0ec7cf7ee2720c88758a4a405" and "95c30be9f8640f65fd755cf339ba6ce538afbe84" have entirely different histories.
6020fa300d
...
95c30be9f8
@ -38,6 +38,7 @@ class UiSelect extends UiElement implements Extension {
|
||||
protected function setList(array $list, $selected, bool $strict = true) : void
|
||||
{
|
||||
foreach($list as $key => $item) {
|
||||
|
||||
if ($item instanceof UiElement) {
|
||||
$this->append($item);
|
||||
|
||||
@ -48,13 +49,13 @@ class UiSelect extends UiElement implements Extension {
|
||||
$obj->attributes(['label' => $key]);
|
||||
|
||||
foreach($item as $subKey => $subItem) {
|
||||
$obj->append($this->createOption((string) $subItem, $subKey, $this->isSelected($subKey, $selected, $strict)));
|
||||
$obj->append($this->createOption($subItem, $subKey, $this->isSelected($subKey, $selected, $strict)));
|
||||
}
|
||||
}
|
||||
else {
|
||||
$obj = $this->createOption((string) $item, $key, $this->isSelected($key, $selected, $strict));
|
||||
$obj = $this->createOption($item, $key, $this->isSelected($key, $selected, $strict));
|
||||
}
|
||||
|
||||
|
||||
$this->append($obj);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user