Hey, in the newest beta of ACF the clone field is not working correctly inside Gutenberg blocks. When I try to clone fields into two separate groups, the fields can not be read correctly via get_field() or the_field().
Example below.
So, here are my custom fields, that I want to clone:
Here are my clone fields:
Here are my setting inside the gutenberg block:
Here is my code:
print_r( get_field( 'font_settings' ) );
echo "<br/>";
print_r( get_field( 'font_secondary_settings' ) );
And here is my result after saving the block setting:
Array ( [font_type] => custom [font_family] => Arial [font_color] => #000000 )
Array ( [font_type] => custom [font_family] => Arial [font_color] => #000000 )
As you can see, the values doesn’t match with the block settings.
Inside the block panel, everything is fine (correct font name and color even after reloading the page), but in gutenberg preview and on the frontend the result is incorrect.
Is there a way I can bypass this issue and keep the clone field?