Nested Replicator inside Bard set remounts and resets collapsed state on field interaction
メンテナーはふだん 1 日以内に返信
@edalzell がすでに取り組んでいます。
2026年10月21日 から。
評価
調査の方向性
Start by tracing the Bard NodeView attribute sync and the Replicator initialization from node.attrs.values and meta.collapsed; the issue does not name source files or tests. Reproduce the nested Bard → set → Replicator → Grid interaction and inspect whether a remount resets expanded state. Done means editing a nested field preserves the expanded set.
索引モデルが issue の本文から書いたものです。
説明
Bug description
When a Replicator (with collapse: true) lives inside a Bard set, interacting with nested fields (e.g. Grid stacked rows, nested Bard) destroys and remounts the parent Bard NodeView. The nested Replicator re-initializes from meta.collapsed, which still lists every set as collapsed from page load, so an expanded set snaps shut.
This makes nested page-builder blocks (Accordion / FAQ style sets with Grid + Bard inside) very hard to edit: open the set, click a field inside, the whole set collapses.
How to reproduce
- Bard field with a set that contains a Replicator (
collapse: true). - That Replicator set contains a Grid (stacked) and/or nested Bard fields.
- Edit an entry, expand one Replicator set.
- Click into a nested field (heading input, ProseMirror, field header, etc.).
- Observe: the Bard NodeView / Replicator DOM is remounted (
data-replicator-setnode replaced), and the set is collapsed again.
Evidence from debugging
- After expand:
data-collapsed="false". - After clicking nested UI: previous set node is gone (
document.contains(oldNode) === false), new node mounts withdata-collapsed="true"whencollapse: true. - The Replicator set header toggle button does not receive the click; collapse comes from remount +
collapsed: clone(this.meta.collapsed)re-init. - Workaround:
collapse: falseon the nested Replicator — remount still happens, but sets stay open.
Expected behaviour
Expanding a nested Replicator set should survive interaction with its own fields. Collapsed state (and preferably the set DOM) should not reset when nested values cause the parent Bard set NodeView to sync/remount.
Environment
- Statamic 6.36.0
- Reproduced in Chromium (Cursor browser) against a Prime site page-builder Bard → set → Replicator → Grid/Bard nest
Related
Possibly related to Bard NodeView attr sync / remount behaviour when nested publish values change (watcher updating node.attrs.values).
- 主要言語
- PHP
- スター
- 4.9k
- フォーク
- 647
- 平均マージ
- 1日 14時間
- マージ済み PR(30日)
- 124
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
statamic/cms のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
accessibility
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
antlers
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
caching nocache
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
statamic/cms#15643 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
navigations
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
0.kind: enhancement 9.needs: package (update)
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
NixOS/nixpkgs#577156 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
MagnaCapax/PMSS#1142 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
Native-arrow select renders a second Jetpack chevron再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Automattic/static-site-importer#2294 ·
メンテナーはふだん 1 日以内に返信
-
bug 🐛
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
netalertx/NetAlertX#1856 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Bug Status: Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信