Problem/Motivation

FieldFormatterSource keeps the cache data of the rendered field, but not its #attached. Libraries and drupalSettings that a formatter adds to the whole field are lost. Some formatters do this, for example Paragraphs and Layout Paragraphs.

Proposed resolution

We could copy the field's #attached onto the items the source returns.

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

just_like_good_vibes created an issue. See original summary.

just_like_good_vibes’s picture

Assigned: just_like_good_vibes » 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.