has-error class not applied to media fields

Created on 25 October 2023, over 1 year ago

Problem/Motivation

When editing a content type with a media field and the user makes an error, the message at the top of the screen shows that it has an
error but it does not highlight the field as with other fields

Steps to reproduce

Create a content type with a mandatory media field
Create a new item of content of this type but fail to add a media item.
Click on save and see that the error is reported at the top but that the field is not highlighted in a red border with red label text as other field types.

Proposed resolution

Get the has-error class applied and if needed define it for this field type.

Remaining tasks

Write a patch

User interface changes

Media fields are correctly flagged when in error.

API changes

None.

Data model changes

None.

Release notes snippet

N/A

🐛 Bug report
Status

Active

Version

10.1

Component
Claro 

Last updated about 22 hours ago

Created by

🇬🇧United Kingdom Rory Downes

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