Use case: custom renderer with method:
public function renderControl(Nette\Forms\IControl $control)
{
...
if ($control instanceof \Nette\Forms\Controls\RadioList) {
$control->getLabelPrototype()->class("my-class", TRUE);
}
}
This custom class is not propagated to final <label> tag. The problem is in method RadioList::getControl() on line 92. Here we can find only this array for label attributes:
On the other hand, CheckboxList works fine.