diff -u b/core/modules/views/templates/views-view-grid.html.twig b/core/modules/views/templates/views-view-grid.html.twig
--- b/core/modules/views/templates/views-view-grid.html.twig
+++ b/core/modules/views/templates/views-view-grid.html.twig
@@ -63,29 +63,29 @@
{% endfor %}
{% else %}
{% for column in items %}
- {% if options.col_class_default %}
- {%
- set col_classes = [
- 'views-col',
- 'col-' ~ loop.index,
- 'clearfix',
- ]
- %}
- {% endif %}
-
- {% for row in column.content %}
- {% if options.row_class_default %}
+ {% if options.col_class_default %}
{%
- set row_classes = [
- 'views-row',
- 'row-' ~ loop.index,
+ set col_classes = [
+ 'views-col',
+ 'col-' ~ loop.index,
+ 'clearfix',
]
%}
{% endif %}
-
- {{ row.content }}
-
- {% endfor %}
+
+ {% for row in column.content %}
+ {% if options.row_class_default %}
+ {%
+ set row_classes = [
+ 'views-row',
+ 'row-' ~ loop.index,
+ ]
+ %}
+ {% endif %}
+
+ {{ row.content }}
+
+ {% endfor %}
{% endfor %}
{% endif %}