Skip to content

[6.x] Apply as-config prop to top-level container only#14855

Merged
jasonvarga merged 2 commits into
statamic:6.xfrom
daun:fix/config-fields-in-nested-container
Jun 23, 2026
Merged

[6.x] Apply as-config prop to top-level container only#14855
jasonvarga merged 2 commits into
statamic:6.xfrom
daun:fix/config-fields-in-nested-container

Conversation

@daun

@daun daun commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

This is an attempt at fixing #13685 where the as-config prop for field rendering is applied at all levels of nesting.

Required change

The grid/replicator/group field types already pass :as-config="false" down into their Fields instance, but the fields themselves only read the prop from the Container context. This change makes them read (and prefer) the prop from the closer Fields context.

Before

Screenshot 2026-06-21 at 09 00 40

After

Screenshot 2026-06-21 at 09 05 14

@jasonvarga jasonvarga merged commit fae029d into statamic:6.x Jun 23, 2026
19 checks passed
@daun daun deleted the fix/config-fields-in-nested-container branch June 23, 2026 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants