Skip to content

Moving a set containing an open revealer doesn't update state correctly #8677

@jacksleight

Description

@jacksleight

Bug description

When you move a set that contains an open revealer the fields hidden state does not update correctly:

CleanShot.2023-09-07.at.18.16.39.mp4

I'm guessing this is because the publish store's hiddenFields data needs to be updated when the revealer's fieldPath changes, which I tried to implement in the existing watcher but I couldn't figure out the right fix.

How to reproduce

  1. Create a replicator containing a set with a revealer
  2. Swap the positions of a set with the revealer open and a set with the revealer closed

Logs

No response

Environment

Statamic
Addons: 0
Antlers: runtime
Stache Watcher: Enabled
Static Caching: Disabled
Version: 4.20.0 PRO

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

None

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions