gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Version 4.1 Shows All Post Meta Field Groups (using ACF)

Open riemerta6 opened this issue 8 years ago • 2 comments

Gutenberg 4.1 shows all Post Meta Postboxes (or ACF Field Groups) even if that Field Group is not assigned to that page. It won't show the Post Meta fields, but it will show the Group. I am using ACF Pro to create these fields, and this was not an issue in Gutenberg 4.0. I tested both versions before creating this post.

Steps to reproduce the behavior:

  1. Activate Gutenberb 4.1
  2. Go to page with ACF Field Groups
  3. All Field Groups show up

Expected Behavior (Version 4.0): screenshot 169

Current Behavior (Version 4.1) screenshot 170

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Firefox 64

riemerta6 avatar Oct 25 '18 15:10 riemerta6

I think this was surfaced by #10676.

I haven't dived into the ACF source code, but from testing my hunch is that this is an upstream issue, because even in Classic Editor I see in the DOM field groups that aren't supposed to be displayed for a given post but that are kept hidden with style="display: none;". Perhaps the ACF plugin loads a batch of field groups and then target specific DOM selectors to hide those that don't matter, and this match fails in Gutenberg.

/cc @noisysocks

mcsf avatar Oct 25 '18 17:10 mcsf

Fixed upstream per https://github.com/AdvancedCustomFields/acf/issues/77#issuecomment-434297801

mcsf avatar Oct 30 '18 14:10 mcsf