-
Notifications
You must be signed in to change notification settings - Fork 182
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
Duplicating Gutenberg blocks in edit mode erases data upon saving the post #923
Comments
Hi @mrdarrengriffin, Thanks for the detailed report! We've been able to replicate this on our end and will look at fixing this up in a future release. |
Hi @mattgrshaw, out of curiosity, do you know what sort of timeline we're looking at? I just need to advice our team and content loaders as to when we can expect a fix. Thanks! |
hi @mattgrshaw could you please update on the timelines for this? block duplication is basically not working at all at ACF Version 6.3.5. |
@maksymmamontov It's not at all a real workaround (especially for clients). Switch to block editor Code mode, copy the block markup manually, and paste it in in code mode, then switch back to editing mode to modify things as needed. That seemed to have worked on the site I tried it on. |
@kmwalsh yes, this helps and as developers we usually do it this way |
I have run across this same issue or a similar one this week. |
I believe I've also run into this issue and have had to roll back. This bug has caused major issues with data loss for a client of ours. It definitely merits a quick point release fix if possible. Does anyone know if disabling validation sidesteps the issue? If so, it would be ideal if there was a way to do that in blocks registered using |
Per support, validation is always disabled on blocks registered using |
@mattgrshaw, please can we get an update on this issue and when it will likely to be fixed? It's clear that many people are affected by this and is causing issues for their clients. Thanks in advance |
Hey folks, we're planning to fix this up as part of our next major release. We don't have an ETA on that just yet, but it is in development and we'll update this thread as we have more to share. |
I see the first alpha of 6.4 has been released, but it only discusses Woocommerce HPOS. Will this fix be pulled into a later alpha? |
This issue had been haunting one of our clients for weeks. |
Is there any timeline on fixing this issue? |
Describe the bug
When duplicating a block with ACF fields in Gutenberg, there is an issue where if there are 2 or more of the same block on the page, the newly added block will not save correctly. Gutenberg does not correctly display the fact that the fields are empty which is causes a massive friction point for content loading.
To Reproduce
Steps to reproduce the behavior. I did this on a fresh install of WordPress 6.1.1 via Local. I installed ACF Pro 6.3.4 with no other plugins active. I was using the Twenty Twenty Four theme.
Please note:
Expected behavior
When duplicating blocks, the data associated with the original block should be retained. Upon saving and refreshing, the data should persist.
Screenshots or Video
https://github.com/user-attachments/assets/e12d4494-e54a-458e-aaae-dd895f92cc17
Code
Test field group:
acf-export-2024-07-29.json
Example code used for testimonial block:
Version Information:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: