Clicking on remove item appears to trigger full node form validation

Created on 12 December 2019, almost 5 years ago
Updated 23 October 2023, about 1 year ago

I haven't been able to track down the where in the code the bug is, but I'm noticing that there are problems if you use the delete button and the node form has validation errors. I believe the delete button calls removeItemSubmit.

Steps to reproduce:

  1. With a node type that has an ERL field, add a new node
  2. Do not populate the required title field
  3. Add a layout paragraph to the field
  4. Optional: add a second layout paragraph to the field
  5. Click on the trash icon to remove the first layout paragraph. Confirmation dialog appears.
  6. Click the remove button.

In my experience, after the ajax submit to removeItemSubmit, you will see "Title field is required" at the top of the form as an error message. The dialog does not close. The layout paragraph is not removed.

Also possibly of interest, if you click to add another layout paragraph at this point, multiple overlapping dialogs pop up.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States JonMcL Brooklyn, NY

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024