[2.0.0-beta2] Check ComponentElementAlter::processAttributes()

Created on 1 September 2024, 3 months ago
Updated 15 September 2024, 2 months ago

Problem/Motivation

We have this:

    $attributes = new Attribute($element["#attributes"]);
    if (isset($element["#props"]["#attributes"])) {
      $attributes = (new Attribute($element["#props"]["#attributes"]))->merge($attributes);
    }

Proposed resolution

But we expect this, doesn't we?

    if (isset($element["#props"]["attributes"])) {
      $attributes = (new Attribute($element["#props"]["attributes"]))->merge($attributes);
    }
🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇫🇷France pdureau Paris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024