Cardlink javascript triggers on contextual links

Created on 14 February 2025, 2 months ago

Problem/Motivation

If you click on a contextual link where the element uses 'cardLink' function, the click triggers and goes to the detail page instead of opening contextual link.

Steps to reproduce

Log in, and click on eg a teaser that getes the cardlink logic applied.

Proposed resolution

Add check so it triggers the contextual links, eg

if (e.target.classList.contains('.contextual') || $(e.target).parent('.contextual').length) {
return;
}
📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇧🇪Belgium al0a

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

Comments & Activities

Production build 0.71.5 2024