Skip to content

[6.x] Fix select field preview disappearing after reordering replicator sets - #15803

Open
lazerg wants to merge 2 commits into
statamic:6.xfrom
lazerg:fix/issue-15802-select-replicator-preview
Open

lazerg wants to merge 2 commits into
statamic:6.xfrom
lazerg:fix/issue-15802-select-replicator-preview

Conversation

@lazerg

@lazerg lazerg commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

This pull request fixes an issue where a Select field's label disappears from the collapsed set preview after reordering Replicator sets.

When a set moves, its field paths change, and Field.vue re-stores the preview under the new path by reading replicatorPreview from the fieldtype's template ref. SelectFieldtype uses <script setup> but never called defineExpose(), so that read came back undefined and wiped the preview. Since the value itself didn't change, nothing emitted it again.

This PR fixes it by exposing the fieldtype's expose object, the same way the Text and Revealer fieldtypes already do. The Icon fieldtype had the same problem, so it gets the same change.

Fixes #15802

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.

Select field preview disappears after reordering Replicator sets

1 participant