Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug with nested flexible content fields #8

Open
arnespremberg opened this issue May 26, 2023 · 1 comment
Open

Bug with nested flexible content fields #8

arnespremberg opened this issue May 26, 2023 · 1 comment
Assignees

Comments

@arnespremberg
Copy link

arnespremberg commented May 26, 2023

If I have a flexible content field sitting within an ACF flexible content layout, hiding the first two layouts of the parent flexible content field will also hide the first two layouts within the nested flexible content field.

Please excuse the short bug report, I currently don't have time to go into more detail, but will follow suit with steps to reproduce and a screen recording.

@patel2002sag
Copy link

Hi, I am experiencing a similar problem with nested layouts. Let's consider the Accordion Component as an example. Within this component, there are two sections, and each section contains two layouts. If I were to disable the first layout within the first section, it would appear as disabled when clicking on the eye icon. However, when I update the page to render the changes on the front-end, the first layout in the second section also appears as disabled in the backend.

When inspecting the layouts in the Chrome DevTools, I observed that when the eye icon is clicked, the "acf-layout-hidden" class is added to the layout's div container. However, when updating the page, that same class gets added to the parallel row of the second container causing the layout to disable in the back-end.

  1. Here I am disabling the first layout within the first section
Screenshot 2023-09-02 194313
  1. Then I am updating the page to display it within on the front end
Screenshot 2023-09-02 194413
  1. Finally upon updating the page notice how the first layout within the second section also gets disabled
Screenshot 2023-09-02 194517

Hope that was clear on what the exact problem is, there is a small bug where disabling the first layout within a specific section causes the parallel layout in the second section to also disable in the back-end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants