Skip to content

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

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
edalzell:fix/replicator-collapsed-meta
Oct 23, 2026
Merged

jasonvarga merged 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

@edalzell
edalzell force-pushed the fix/replicator-collapsed-meta branch from 3079306 to a143ca0 Compare October 21, 2026 02:33
@jasonvarga
jasonvarga merged commit e267b52 into statamic:6.x Oct 23, 2026
61 of 62 checks passed
@edalzell
edalzell deleted the fix/replicator-collapsed-meta branch October 23, 2026 16:59
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

2 participants