When an autocomplete entity reference is required via #states, no required marker is added

Created on 15 February 2023, over 2 years ago

Problem/Motivation

When an autocomplete entity reference is required via #states, no required marker is added.

Steps to reproduce

TBD

Proposed resolution

When an autocomplete entity reference is required via #states, no required marker is added. Well, it actually is, but to the visually-hidden label of the first time. Let's add it to the multiple widget label instead as it happens when the field is directly required on Drupal unconditionally.

Remaining tasks

Tests?

User interface changes

Required marker added.

API changes

None.

Data model changes

None.

Release notes snippet

TBD.

πŸ› Bug report
Status

Active

Version

9.5

Component
JavascriptΒ  β†’

Last updated 12 days ago

Created by

πŸ‡ͺπŸ‡ΈSpain penyaskito Seville πŸ’ƒ, Spain πŸ‡ͺπŸ‡Έ, UTC+2 πŸ‡ͺπŸ‡Ί

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

Comments & Activities

Production build 0.71.5 2024