Select field preview disappears after reordering Replicator sets

Offen
#15,802 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@lazerg arbeitet bereits daran.

Seit 06.11.2026.

  • #15803 von @lazerg — offen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Veraltet
Bereich
frontend, testing

Rechercherichtung

Start by comparing the fullPath watcher in components/ui/Publish/Field.vue with SelectFieldtype.vue's defineReplicatorPreview() and exposure; the issue identifies these as the suspected path. Trace how the Select preview is restored after Replicator sets are reordered, then add or update a regression test for the reproduction steps. Done means the selected option labels remain in collapsed previews after reordering while other preview fields remain intact.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

fieldtypes
Bug description

After dragging and dropping Replicator sets, the selected option’s label disappears from the collapsed set’s preview text. Other preview fields, such as the headline, remain visible.

See the attached recording.

https://github.com/user-attachments/assets/fe9849c8-12eb-48b9-9a9c-3805193153e3

How to reproduce
  1. Create a Replicator set containing a Select field and a Text field, with field previews enabled.
  2. Add two sets and choose different Select options.
  3. Collapse both sets. Their summaries show the selected options and text values.
  4. Drag one set above the other.
  5. Observe that the Select labels disappear from the summaries.
Logs

Environment
Environment
Laravel Version: 13.38.0
PHP Version: 8.4.6
Composer Version: 2.8.8
Environment: production
Debug Mode: OFF
Maintenance Mode: OFF
Timezone: UTC
Locale: en

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: null
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: sync
Session: file

Storage
public/assets/assets_main: LINKED
public/storage: LINKED

Statamic
Addons: 3
License Key: Set
Sites: 1
Stache Watcher: Enabled
Static Caching: Disabled
Version: 6.32.0 PRO

Statamic Addons
cboxdk/statamic-reverse-relationship: 2.1.2
eminos/statamic-tabs: 2.0.1
thoughtco/statamic-restrict-fields: 1.1.0
Installation

Fresh statamic/statamic site via CLI

Additional details
Expected behavior

Reordering sets should preserve their preview text, including selected option labels.

Actual behavior

The Select field’s preview disappears after reordering.

Possible cause

In components/ui/Publish/Field.vue, the watcher for fullPath updates the preview using:

setFieldPreviewValue(fullPath.value, fieldtype.value?.replicatorPreview)

Reordering changes this path. However, SelectFieldtype.vue defines its preview through defineReplicatorPreview() without exposing replicatorPreview through defineExpose().

This appears to cause the path watcher to overwrite the preview with undefined. Since the Select value itself has not changed, its preview watcher may not emit another update.

Related issue

Possibly related to #14071, fixed by #14072. That fix is present in the installed source, but this behavior still occurs. This case involves Select previews disappearing rather than fields from different set types being merged.

Vorherrschende Sprache
PHP
Sterne
4.9k
Forks
647
Ø Merge
23 Std. 42 Min.
Gemergte PRs (30 T.)
148

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus statamic/cms

Alle Issues in statamic/cms

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.