When using get_block_wrapper_attributes()
inside a block template, the first time the block gets rendered in the preview, it throws an error:
> Trying to access array offset on value of type null
This is because WP_Block_Supports doesn’t have an initialized block.
This is a quick patch fix but probably the whole thing should be refactored to use native WP render methods no?
https://gist.github.com/oxyc/dc646e094e1096972f17422052e87a6b
I just want to chime in here and confirm that this is still an issue, which doesn’t appear to have even been read by the ACF team yet, nearly 6 months later.
The ACF team does not monitor this forum. To submit a bug you need to contact them directly here https://www.advancedcustomfields.com/contact/ or submit a ticket by logging into your account https://www.advancedcustomfields.com/my-account/