Hi, I'm randomly getting the attacched error when switching a gutenberg block made with acf from edit to preview mode.
I'm using acf pro 6.0.6 and wp 6.1.1
Step to reproduce.
Create a gutenberg custom block with acf, ie:
Add the block into a page, change the title and switch from edit to preview mode. Repeat few times
The block crash.
The issue seems to be in acf-input-osm.js
`acf.addAction( 'append', function( $el ){
$el.length && $el.get(0).dispatchEvent( new CustomEvent('acf-osm-map-added') );
});
Hi, I'm randomly getting the attacched error when switching a gutenberg block made with acf from edit to preview mode. I'm using acf pro 6.0.6 and wp 6.1.1 Step to reproduce. Create a gutenberg custom block with acf, ie:
Add the block into a page, change the title and switch from edit to preview mode. Repeat few times The block crash.
The issue seems to be in acf-input-osm.js `acf.addAction( 'append', function( $el ){ $el.length && $el.get(0).dispatchEvent( new CustomEvent('acf-osm-map-added') ); });
fir.local-1672323885945.log