Skip to content
Snippets Groups Projects
Commit c625a32a authored by Pierre Dureau's avatar Pierre Dureau
Browse files

Issue #3471485 by pdureau: Fix ComponentElementAlter::processAttributes()

parent a22fee34
Branches
Tags
No related merge requests found
Pipeline #272443 passed with warnings
......@@ -71,8 +71,8 @@ class ComponentElementAlter implements TrustedCallbackInterface {
return $element;
}
$attributes = new Attribute($element["#attributes"]);
if (isset($element["#props"]["#attributes"])) {
$attributes = (new Attribute($element["#props"]["#attributes"]))->merge($attributes);
if (isset($element["#props"]["attributes"])) {
$attributes = (new Attribute($element["#props"]["attributes"]))->merge($attributes);
}
$element["#props"]["attributes"] = $attributes;
return $element;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment