Cancel button should not validate the form, errors appear on next modal opened

Created on 2 October 2022, over 1 year ago
Updated 10 December 2023, 7 months ago

Problem/Motivation

The component insert form cancel button is processed via ajax. Validation occurs before the ajax callback is executed, and any error messages that result will be displayed in the next modal opened.

Steps to reproduce

  1. Click a "+" add paragraph button in the builder.
  2. Choose a paragraph that has required fields.
  3. In the resulting paragraph edit modal form, immediately click "cancel" without adding anything.
  4. Click a "+" add paragraph button in the builder.
  5. The modal dialog displays an error message for the required field from the previous step.
  6. Become very confused.
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡³πŸ‡ΏNew Zealand John Pitcairn

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

Merge Requests

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.69.0 2024