Skip to content
Snippets Groups Projects
Commit 07f2adb3 authored by Florent Torregrosa's avatar Florent Torregrosa Committed by Florent Torregrosa
Browse files

Issue #3337986 by Grimreaper: Attributes error when displaying messages with different types

parent 6cbde48e
Branches
Tags
1 merge request!39Issue #3337986: Attributes error when displaying messages with different types
...@@ -31,9 +31,14 @@ ...@@ -31,9 +31,14 @@
{% set variant = (type == 'error') ? 'danger' : variant %} {% set variant = (type == 'error') ? 'danger' : variant %}
{% for message in messages %} {% for message in messages %}
{#
Ensure each pattern have its own attributes to not interfere on other
messages by changing the main attributes object.
#}
{% set pattern_attributes = create_attribute(attributes.toArray()) %}
{{ pattern('alert', { {{ pattern('alert', {
'variant': variant, 'variant': variant,
'attributes': attributes, 'attributes': pattern_attributes,
'message': message, 'message': message,
'dismissible': true 'dismissible': true
}) }} }) }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment