Commit f8fbcbea authored by alexpott's avatar alexpott
Browse files

Issue #2558203 by mortendk: Remove double addClass() calls in Classy's field.html.twig

parent ce6f3ec8
......@@ -54,14 +54,14 @@
{% if label_hidden %}
{% if multiple %}
<div{{ attributes.addClass(classes).addClass('field__items') }}>
<div{{ attributes.addClass(classes, 'field__items') }}>
{% for item in items %}
<div{{ item.attributes.addClass(classes).addClass('field__item') }}>{{ item.content }}</div>
<div{{ item.attributes.addClass(classes, 'field__item') }}>{{ item.content }}</div>
{% endfor %}
</div>
{% else %}
{% for item in items %}
<div{{ attributes.addClass(classes).addClass('field__item') }}>{{ item.content }}</div>
<div{{ attributes.addClass(classes, 'field__item') }}>{{ item.content }}</div>
{% endfor %}
{% endif %}
{% else %}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment