You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
Can you try this with the develop branch, please? A lot of improvements to how labels are handled have been made there, and this may be a non-issue now.
Suppose the label tag is used as a container of errors in FormElementErrors :
$ this-> formElementErrors () -> setMessageOpenFormat ('<label%s>');
$ this-> formElementErrors () -> setMessageSeparatorString ('</ label> <label%s>');
$ this-> formElementErrors () -> setMessageCloseString ('</ label>');
If I Render a field with the following parameters:
$ this-> formElementErrors () -> setAttributes (array ('class' => 'help-block', 'for' => 'Email'));
echo $ this-> formElementErrors ($ form-> get ('Email'));
The 'for' attribute will not print, I analyzed the code and saw that global attributes are only accepted in this class.
Does anyone have a suggestion on how I could make a change that would resolve this case in a clean way?
The text was updated successfully, but these errors were encountered: