AdvancedCustomFields / AdvancedCustomFields/acf
Can't delete or edit images when using flexible content in a block
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
Issue Overview
I've created a gutenberg block using the following method:
https://www.advancedcustomfields.com/blog/acf-5-8-introducing-acf-blocks-for-gutenberg/
The block includes a flexible content field with 2 layout options, one including an image.

Once you populate the content and either switch from edit to preview, or reload the page; the image can't be edited or removed. The buttons cease to function. There are no errors in the console.
The only way to edit the image is to delete the block and repopulate the content.
Steps to Reproduce
- Create block with a flexible content field
- Add an image to one of the layouts
- Add a block using that layout and add the image
- Either switch views(edit, preview) or reload the page
- Observe that the edit and delete buttons no longer function
Broken image button:

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with an ACF Gutenberg block containing a flexible content field and an image layout, following the linked ACF Blocks guide. Switch between edit and preview or reload the page, then inspect the image controls; done means the edit and delete buttons continue to function without console errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100