We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13be885 commit 066a21bCopy full SHA for 066a21b
src/Forms/Controls/SelectBox.php
@@ -95,13 +95,11 @@ public function getControl(): Nette\Utils\Html
95
$items[is_array($value) ? $this->translate($key) : $key] = $this->translate($value);
96
}
97
98
- return Nette\Forms\Helpers::createSelectBox(
99
- $items,
100
- [
101
- 'disabled:' => is_array($this->disabled) ? $this->disabled : null,
102
- ] + $this->optionAttributes,
103
- $this->value,
104
- )->addAttributes(parent::getControl()->attrs);
+ $attrs = $this->optionAttributes;
+ $attrs['disabled:'] = is_array($this->disabled) ? $this->disabled : null;
+
+ return Nette\Forms\Helpers::createSelectBox($items, $attrs, $this->value)
+ ->addAttributes(parent::getControl()->attrs);
105
106
107
0 commit comments