Problem/Motivation

Links inside the layout tab pane are not clickable.

Steps to reproduce

1. Create a new node page, that uses the layout builder;
2. Go to the layout builder page and create a new section of Layout Builder Tabs type;
3. Add the content to the tab, that contains the link inside (e.g. the Views view);
4. Save the node layout builder and go to the node view page;
5. As a result the link inside the layout builder tab is not clickable;

Proposed resolution

Attach the JS listener to links in a more specific way, e.g.
const $layoutTabLink = $('.layout-tabs ul.tabs a.layout-tabs__tab-link');

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

zen1995 created an issue. See original summary.

zen1995’s picture

Attaching the patch with a basic refactor. Needs review and test from the community.

zen1995’s picture

Status: Needs work » Needs review
zen1995’s picture

Assigned: zen1995 » Unassigned
delmarr’s picture

I can't reproduce this issue displaying a custom block with a link field in a tab pane. @zen1995 is this specific to views that contain links?

gifthorse’s picture

I have a Views block with links in a tab pane and don't see the bug, links work.