Attributes not added to container element

Created on 8 March 2021, almost 4 years ago
Updated 18 August 2024, 4 months ago

Problem/Motivation

Added a class starting with container_ but the class is not added to the <li> container element.

Steps to reproduce

I followed this screencast link on the project page: https://i.imgur.com/jZCQrnW.gifv?twitter#t

I was running 1.1 but updated to 1.2 and run update.php after the update.
Add a container_class on the available attributes page (below)

attributes:
  container_class:
    label: 'Container class'
    description: 'Applied to container element.'
  class:
    label: ''
    description: ''
  target:
    label: ''
    description: ''
    options:
      _blank: 'New window (_blank)'
      _self: 'Same window (_self)'

Edit the menu item and add the class to the container.
Save the changes
Go back to the site
Clear caches
The class is not added to the <li> containing the anchor.

D8.9.13
menu_link_attributes 8.x-1.2 (when submitting issue above it would only allow me to select version 8.x-1.1, 1.2 is not available in the dropdown)
php 7.4

🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇨🇦Canada jmoruzi Brantford, ON

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024