Select field preview disappears after reordering Replicator sets
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, laravel, php
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Create a Replicator set containing a Select field and a Text field, with field previews enabled.
- Add two sets and choose different Select options.
- Collapse both sets. Their summaries show the selected options and text values.
- Drag one set above the other.
- 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.
- Ngôn ngữ chính
- PHP
- Star
- 4.9k
- Fork
- 647
- Merge trung bình
- 23 giờ 42 phút
- Pull request đã merge (30 ngày)
- 148
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của statamic/cms
-
tags
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
antlers
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 1 ngày
-
antlers modifiers
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 57/100
statamic/cms#15832 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Multisite: switching site in the collection listing opens a different entry, not the localizationĐang mởmultisite
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
nikic/PHP-Parser#1187 ·
-
15.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Icinga/icinga-notifications-web#645 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
OpenMage/magento-lts#5865 ·
Maintainer thường phản hồi trong vòng 3 ngày