Do not validate elements that are not visible

Created on 11 April 2024, 8 months ago
Updated 18 April 2024, 8 months ago

Problem/Motivation

cshs may attempt to validate an element that is required but not visible. The failed validation prevents submission of the form, but since the element is hidden, it cannot be completed. I ran into this on with a required untranslatable entity reference field when editing the translation of the node. If I switched to a different widget, the validation did not fail.

Proposed resolution

Check if the element is visible before doing validation.

Remaining tasks

Implement.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

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