[2.0.9] Component form : update behavior of remove slot source button

Created on 5 September 2025, about 20 hours ago

Problem/Motivation

When the component form is used outside, for example in display builder, the Remove button introduces some problems because of the FormBuilder.
First, drupal core is trying to automatically identify a triggering element, and in some cases it is identified as triggering and it submit callback is used.
Second, during the build form phase, the identification of the triggering element can be done very lately and the current code is not working.

so we change the implementation of the remove button to cope with those cases. It is cross checked in display builder issue 🐛 Reference field in instance form fail for different cases Active , and allows to fix that issue.

📌 Task
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France just_like_good_vibes PARIS

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024