Problem/Motivation

The fix in #3567063: Fix missing required marker on composite fields added Name-specific handling so required-on-publish markers appear on minimum components. However, conditionally required-on-publish Name components still miss their markers when the state is toggled dynamically. This happens because the static required-on-publish path marks the component labels, but the JavaScript states behavior does not propagate state:require_on_publish changes to the Name module's component label structures, including the description-rendered labels used for minimum components.

Steps to reproduce

Proposed resolution

Ensure dynamic required-on-publish state changes add and remove the marker class on the relevant Name component labels, matching the behavior already provided for statically required-on-publish components.

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

jcandan created an issue. See original summary.

jcandan’s picture

Title: Fix missing required markers for conditionally-required-on-publish » Fix missing conditionally-required name field markers

jcandan’s picture

Assigned: jcandan » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • jcandan committed 384a74e1 on 2.1.x
    feat: #3587271 Fix missing conditionally-required name field markers