[2.0.0-beta2] Component remove button should bypass form validation

Created on 9 September 2024, 2 months ago
Updated 15 September 2024, 2 months ago

Problem/Motivation

Currently, in slots, we have the option to add either a component or data from a field...etc. If you accidentally click "Add component," you're presented with a required dropdown to select a component and a "Remove" button. However, when you try to click the "Remove" button, form validation is triggered, forcing you to select a component first. This means that a simple accidental click requires you to select a component, wait for the AJAX request, and fill in all the required fields before you're able to successfully remove the component.

Proposed resolution

The "Remove" button for the component should bypass form validation. To achieve this, we need to add the #limit_validation_errors property to the "Remove" button in the form element.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇲🇦Morocco b.khouy 🇲🇦 Morocco

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