Multiple Scroll Reveal Modifiers don't run

Created on 18 December 2023, 6 months ago
Updated 23 January 2024, 5 months ago

Problem/Motivation

When you have multiple paragraphs on your page and you are assigning a Scroll Reveal Modifier to each of those, the functionality of the modifier stops working. This bug has been spotted in the D10 version.

Steps to reproduce

Create multiple paragraphs.
Set Scroll Reveal Modifier for each of those.
See if the effect is running for you on the frontend.

Proposed resolution

There is a custom function to check if the modifier ran. This custom code probably prevents the modifier from another round for the next modifier as the variable is set to true and the code returns. We should change this custom code to use of once library provided by Drupal Core.
As this library moved to core in 9.2 we need to drop the support for D8 and partially for D9 too. These versions of Drupal are at the end of life anyway and are not further supported.

🐛 Bug report
Status

Fixed

Version

2.1

Component

Code

Created by

🇨🇿Czech Republic honzapara

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024