diff --git a/src/Forms/Controls/MultiSelectBox.php b/src/Forms/Controls/MultiSelectBox.php index 3308cb52f..2340ba015 100644 --- a/src/Forms/Controls/MultiSelectBox.php +++ b/src/Forms/Controls/MultiSelectBox.php @@ -73,6 +73,7 @@ public function getControl(): Nette\Utils\Html } + /** @deprecated use setOptionAttribute() */ public function addOptionAttributes(array $attributes): static { $this->optionAttributes = $attributes + $this->optionAttributes; diff --git a/src/Forms/Controls/SelectBox.php b/src/Forms/Controls/SelectBox.php index d397a34a5..36b825cc4 100644 --- a/src/Forms/Controls/SelectBox.php +++ b/src/Forms/Controls/SelectBox.php @@ -106,6 +106,7 @@ public function getControl(): Nette\Utils\Html } + /** @deprecated use setOptionAttribute() */ public function addOptionAttributes(array $attributes): static { $this->optionAttributes = $attributes + $this->optionAttributes;