AJAX events do not trigger video overlays or consents

Created on 30 April 2024, 7 months ago
Updated 27 June 2024, 5 months ago

Problem/Motivation

When using cookies_video in conjunction with ajax views placed via layout builder, the overlays of the iframes are not generated after ajax-content from drupals views is injected. Also, when consent was given, the iframes do not update their attributes to start working.

Steps to reproduce

* Configure cookies_video to block videos
* Create a view with video media, pagination and ajax enabled.
* Place it on a page with layout builder
* Use pagination
* The iframes will be broken on page 2 and on and no overlay will be generated for asking for consent.

Proposed resolution

Trigger the same event ("cookiesjsrUserConsent") as CookiesJSR manually with the current consent state, when drupal does inject ajax content.

Remaining tasks

Review issue and provided MR.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

RTBC

Version

1.2

Component

Code

Created by

🇩🇪Germany fisherman90 Dortmund

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024