Add paragraph button incorrectly triggers HTML5 validation on the whole form

Created on 9 August 2024, 9 months ago

Problem/Motivation

Upon clicking the add button, HTML5 validation is being triggered on the whole form, which is an incorrect behaviour

Drupal core add more / Paragraphs add more do not follow this pattern and skip the validation

Steps to reproduce

- Do not fill node title
- Click on Add button, HTML5 validation will be triggered

Proposed resolution

- Add #limit_validation_errors to the browse button (matches core/paragraphs behaviour)
- Core then add formnovalidate HTML attribute which will prevent browser validation

Remaining tasks

Review MR

User interface changes

Opening paragraphs browser won't be triggering HTML5 validation anymore

API changes

None

Data model changes

None

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Taran2L Lviv

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