splide.colorbox and once implementation

Created on 10 November 2022, over 1 year ago
Updated 16 May 2023, about 1 year ago

Problem/Motivation

Under latest Drupal 9 versions the component splide.colorbox.js breaks because Drupal core implemented once in vanilla js.

Proposed resolution

Replace line 116 of splide.colorbox.js, and removed support to Drupal 8.

Current line

$('.splide.is-colorbox', context).once('splide-colorbox').each(doSplideColorbox);

Possible solution

$(once('splide-colorbox', '.splide.is-colorbox', context)).each(doSplideColorbox);
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇷Costa Rica MaxMendez

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024