A standard checkbox element with a description was being printed in 8.x-5.0-rc16. But when updating to 8.x-5.0-rc17 the html tags for the description are being printed but not the value.

I only get this:

when i print my element with following code: {{ element.elements.privacy_policy }}

But when i use this code to print the description only, it works: {{ element.elements.privacy_policy['#description']['#text']|raw }}

Not sure if i'm doing something wrong here.

Comments

seppebeelprez created an issue. See original summary.

seppe beelprez’s picture

Issue summary: View changes
jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)

Where are printing the description? A custom twig template?

jrockowitz’s picture

The render array has changed for all webform related element descriptions.

@see #2983248: [accessibility] Improve element, details, and fieldset description handling

jrockowitz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)