• Resolved antoaltsrl

    (@antoaltsrl)


    Hi, I’m getting the following error only in the WordPress admin when editing a page that contains the block:

    ReferenceError: reverseDirection is not defined

    Environment:

    • WP Swiper version: 1.3.7

    In the console I also get a block validation error:

    Block validation failed for da/wp-swiper-slide

    Content generated by the save function:

    <div data-tab="slide-5" class="wp-swiper__slide swiper-slide"> <div class="wp-swiper__overlay-color" style="background-color:rgba(0, 0, 0, 0)"></div> <div class="wp-swiper__slide-content"></div> </div>

    Content retrieved from the post body:

    <div data-tab="slide-5" class="wp-swiper__slide swiper-slide"> <div class="wp-swiper__overlay-color"></div> <div class="wp-swiper__slide-content"> </div> </div>

    Any fix or workaround would be appreciated.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter antoaltsrl

    (@antoaltsrl)

    When testing in a staging environment, it seems that the error is caused when I enable the “autoplay” parameter.

    Thread Starter antoaltsrl

    (@antoaltsrl)

    ok I saw that the problem has been fixed, thanks

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘ReferenceError: reverseDirection is not defined’ is closed to new replies.