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
Issue fork require_on_publish-3587271
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
Comment #2
jcandan commentedComment #4
jcandan commented