Removing image makes form validation impossible

Created on 1 November 2023, 8 months ago
Updated 10 June 2024, 18 days ago

Problem/Motivation

When you remove an image from a list, the AJAX call leaves a required upload field making submission impossible. This is a problem because the user may not want to add additional images.

Add-on media image fields like "Caption" are not deleted either when Remove is clicked.

Steps to reproduce

1) Install module
2) Add field to image media
3) Create "Media Entity DropzoneJS with edit" widget with path alias
4) Upload two images and fill out required text areas
5) Remove one of the images with an AJAX call

The remove image will be replaced with a required upload field.

Proposed resolution

TBD

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pmagunia Philadelphia πŸ‡ΊπŸ‡Έ

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

Comments & Activities

Production build 0.69.0 2024