Bug "listitemclass" attribute has no effect in checkbox choice formatter

There is a bug in this version
P

Painbaker

Guest
The listitemclassattribute in the checkbox tag processor is ignored. This attribute is expected to behave similarly to the radio tag processor.


Checkbox renderer does not call processAttributeToNamedHtmlAttribute() for listitemclass. Instead, it hardcodes the class as inputChoices-choice in the li element:

Radio renderer:

PHP:

Code:
    public function formRadio(array $controlOptions, array $choices)
    {
         ....
        $choiceFormatter = function (array $choice, array...

Read more

Continue reading...