JS error from vertical tabs in layout builder

Created on 24 May 2023, about 1 year ago
Updated 29 August 2023, 10 months ago

Problem/Motivation

Sometimes when editing a node layout you can see the following error in the console:

Uncaught TypeError: this.details.siblings(...).each(...).end().show().siblings(...)[0] is undefined

Steps to reproduce

  1. Create a layout builder landing page;
  2. Click on the tab;
  3. Open the console.

Proposed resolution

I've marked this as a bug in Carnation, but it's not 100% clearcut to me. It's possible the core JS could be improved to be less brittle, but I think the fundamental issue is using the attributes variable in the template in an inner container (normally I think it's on the outer) in input.html.twig. That then leads to unexpected markup in the vertical tab for revision information.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom AndyF

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

Comments & Activities

Production build 0.69.0 2024