Issue with Modals and GDPR component

Search
Other Bug Reports questions
Forum

Issue with Modals and GDPR component

Kovacs Peter's Avatar Kovacs Peter
We use Regular Labs Modals on several sites, mostly to display images or YouTube videos using this type of syntax:
{modal youtu.be/.....|width=560|height=315|title= .......}<button class="btn btn-notify btn-info btn-lg">....</button>{/modal}
We also tried to install and use the GDPR extension for Google Consent Mode and GDPR compliance:

storejextensions.org/extensions/gdpr.html

The issue arises when I open the site for the first time or in incognito mode. GDPR shows their modal, and the Regular Labs modal video pops up in the background.
Confidential information:
(hidden)

Upon inspecting the source code, I noticed the parameter data-modal-open="true" in the modal link. Removing this parameter resolves the issue.
I have already contacted GDPR support, and they claim that the issue is not related to their software.

Any help would be appreciated.
Peter van Westen's Avatar Peter van Westen ADMIN
First off, you are using an old and no-longer-supported syntax in the modal tag.
Update it to the attribute syntax:
docs4.regularlabs.com/modals

Also, you shouldn't place a button inside the modal tag. Just give the modal tag the button classes.
Please post a rating at the Joomla! Extensions Directory
You can only post on this forum if you log in