Skip to content

Flexible content expand/collapse state (ACF 6.6.2 + Blocks v3) #986

@dansdev

Description

@dansdev

Describe the bug
I'm using Flexible Content field with ACF 6.6.2 + Blocks v3 (loving the new edit mode by the way!). The functionality to Expand All and Collapse All layouts is working as expected. Though if I collapse all layouts, close the Expanded Editor and then reopen it, all layouts are set as expanded not collapsed as previously set.

From past experience, this is also the same for ACF Flexible Content fields in the block editor sidebar (ACF Block Version v2 & v3). Another topic, but also Repeater fields do not remain collapsed.

To Reproduce
Steps to reproduce the behavior:

  1. Create block with Flexible Content field.
  2. Open blocks ACF Expanded Editor in block editor.
  3. Click Flexible Content "Collapse All" button.
  4. Close ACF Expanded Editor.
  5. Open ACF Expanded Editor - layouts are not collapsed.

Expected behavior
Flexible Content should adhere to the state set by the user.

Screenshots or Video
If applicable, add screenshots or video to help explain your problem.

acf-flexible-content-state.mp4

Code
Please drag and drop an export of your field group, option page, custom post type or taxonomy JSON here.
If your issue relates to ACF Blocks, please also provide a reproducable code example of your ACF Block including it's block.json so we can reproduce the issue.

acf-export-2025-10-30.json
test-block.zip

Version Information:

  • WordPress Version: 6.8.3
  • PHP Version: 8.2.29
  • ACF Version: ACF PRO 6.6.2
  • Browser: Tested in Chrome v141.0.7390.123, Safari v26.0.1
  • WordPress Theme: Twenty Twenty-Five

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions