acf-star-rating-field icon indicating copy to clipboard operation
acf-star-rating-field copied to clipboard

Layouts in a Flexible Content Field are broken when this plugin is active

Open jenniferaslan opened this issue 1 year ago • 2 comments

I have this plugin installed alongside Advanced Custom Fields Pro.

When this plugin is not active, all the layouts in my Flexible Content field are editable and you can see their names:

correct editable layouts

When this plugin is active, all the layouts in my Flexible Content field become uneditable and their names are all just “Layout.”

broken uneditable layouts

When I click the down arrow at the right end of any of them, nothing happens and if I click “Add Layout” on any of them, the page refreshes and a message appears in a green box that says, “Field group updated.”

field group updated message

This happens to any Flexible Content field that I create, even in a different Field Group. This essentially makes this plugin unusable for me.

jenniferaslan avatar Dec 22 '23 00:12 jenniferaslan

@kevinruscoe Are you open to a PR for this? I found this same issue and forked for a temporary fix and it was due to the input.js being loaded on field groups when its only needed (from what I could see) when displaying the field on the post edit pages.

jonpxpx avatar Mar 27 '24 15:03 jonpxpx

@jonpxpx of course mate, open a PR amd I'll try and get it sorted over the weekend

kevinruscoe avatar Mar 27 '24 15:03 kevinruscoe