toggleSideBarIcon is null when attempting to configure content type default layout

Created on 27 February 2024, 4 months ago
Updated 13 March 2024, 3 months ago

Problem/Motivation

LB+ Makes configuring a content type's default layout impossible. The interface does not render and the console reports that toggleSideBarIcon is null in lb-plus-ui.js line 84. On line 83 of that file it is defining that constant by finding an element with the id "lb-plus-toggle-sidebar" and that cannot be found. Opening page source doesn't show it either. There are no errors logged in watchdog which might account for something not rendering.

Steps to reproduce

Using ddev
1. Use ddev CMS quickstart instructions to install a recommended-project version of drupal 10 (https://ddev.readthedocs.io/en/stable/users/quickstart/#drupal)
2. add lb_plus to composer (`ddev composer require lb_plus`)
3. enable module (`ddev drush en lb_plus -y`)
4. Navigate to display administration of Basic Page and enable use of Layout Builder and custom layout per content
5. configure default layout section and promoted blocks (One Column and Basic block and Announcement Feed)
6. Select "Manage Layout" of the content type. No Layout Builder toolbars appear. I can modify the existing body block but that is the extent of what I am able to do. No save, no discard, no + button to open sidebar and add elements. Just an error in the console.

Additional info:
1. I am able to us LB+ with any Basic Page node created on an individual node level. This issue is restricted to the content type level layout.
2. I tried this with both Olivero and Stark themes.

Attached is a config export using the above setup.

πŸ› Bug report
Status

Fixed

Version

2.1

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States drakythe

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

Comments & Activities

Production build 0.69.0 2024