Map widgets remove button - ensure unique names using parents and limit validation to button

Created on 16 June 2025, 18 days ago

Problem/Motivation

The map & map_string field types have widgets that allow adding/removing items. The remove button does not currently account for parents in the generated name property so in cases where a custom field is attached to paragraphs, items removed may be getting removed from wrong parent item. Additionally, the #limit_validation_errors on the remove button is too broad resulting in the inability to remove blank items.

Proposed resolution

  1. Ensure unique name key for remove button using helper function.
  2. Narrow the scope for #limit_validation_errors to the button.
πŸ“Œ Task
Status

Active

Version

3.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States apmsooner

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

Comments & Activities

Production build 0.71.5 2024