Wrapper attributes are not passed to the wrapper element in form-element component

Created on 11 March 2024, 10 months ago
Updated 22 March 2024, 9 months ago

While I was building a webform, I noticed that form element wrapper classes are not passed to the component markup. The reason is that wrapper attributes are passed to form-element.html.twig template in attributes variable, but form-element.twig template uses form_element_attributes for the wrapper element.

I think it should be handled in a way that makes passed attributes work, but also allow overriding the via the component props. It would probably make sense to review all components to see if it's not happening elsewhere.

πŸ› Bug report
Status

Closed: duplicate

Version

6.0

Component

Code

Created by

πŸ‡¨πŸ‡ΏCzech Republic milos.kroulik

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024