Support

Account

Home Forums Gutenberg Gutenberg ACF Blocks – JS Not Working/Loading in Editor/Preview Reply To: Gutenberg ACF Blocks – JS Not Working/Loading in Editor/Preview

  • I’m just learning the Gutenberg editor and I might be wrong, but it seems to me that inside the initializeBlock function you can only operate on the $block variable. Try this:

    
    var initializeBlock = function( $block ) {
        $testimonials = $block.find('.testimonials');
        $testimonials.slick();
    }