Custom events are not triggered because the popup was opened before the script is loaded

Created on 4 June 2025, about 1 month ago

Problem/Motivation

Seems like there is a new issue after recent release of eu_cookie_compliance

https://www.drupal.org/project/eu_cookie_compliance/releases/8.x-1.26 β†’

The cookie compliance popup opens before eu-cookie-compliance-rocketship.js script is even loaded. So, listening the event eu_cookie_compliance_popup_open will not work as it was triggered before we subscribed to.

Steps to reproduce

- Set up latest eu_cookie_compliance and eu_cookie_compliance_rocketship
- Open in incognito the site and see that clicking on buttons reloads a page.

Proposed resolution

Ensure the script eu-cookie-compliance-rocketship.js loads before the popup opens

πŸ› Bug report
Status

Active

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine nginex

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