AdvancedCustomFields / AdvancedCustomFields/acf
Repeater field in a block - Add row button
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 945
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I noticed that if you use a repeater field in a custom block, the add row button only triggers if you select/focusing the block first. This behavior changed in ACF 6.0+. In ACF 5.12.3 the add row button would trigger without selecting/focusing the block first.
Steps to reproduce:
- Create a custom block with a repeater field.
- Add custom block to page and add content to the repeater fields. Publish page.
- Return to the same page and now try clicking "add row" in the custom block.
I'm running latest WordPress 6.0.2 and latest ACF 6.0.2.
Cheers.
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
Reproduce the issue using WordPress 6.0.2 and ACF 6.0.2 with a custom block containing a repeater field, then compare the add-row behavior with ACF 5.12.3. Trace the custom block repeater interaction and verify that the Add row button works without first selecting or focusing the block.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100