Skip to content

[6.x] Persist Replicator set collapse state to meta - #15688

Open
edalzell wants to merge 1 commit into
statamic:6.xfrom
edalzell:fix/replicator-collapsed-meta
Open

edalzell wants to merge 1 commit into
statamic:6.xfrom
edalzell:fix/replicator-collapsed-meta

Conversation

@edalzell

@edalzell edalzell commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Toggling a single Replicator set never reached meta.collapsed. collapseSet/expandSet mutate the array in place and the watcher that writes it to meta was shallow, so it only fired on reassignment (collapse all, expand all, accordion). Any remount of the field, e.g. a Replicator inside a Bard set, or toggling fullscreen, re-read the stale meta and snapped expanded sets shut.

The watcher is now deep, so in-place toggles go through update:meta like the bulk actions already do.

Stopping Bard from remounting sets in the first place is #15689.

Closes #15687

This branch has not been deployed

No deployments
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.

Nested Replicator inside Bard set remounts and resets collapsed state on field interaction

1 participant