Olivero: Support more than two levels of menu in primary menu.

Created on 30 June 2021, about 4 years ago
Updated 24 July 2023, about 2 years ago

Problem/Motivation

In Version 9.2, dropdown menus do not work at all when more than 2 levels of menu selected.

second-level-navigation.js?v=9.2.0:21 Uncaught TypeError: Cannot read property 'classList' of null
    at second-level-navigation.js?v=9.2.0:21
    at NodeList.forEach (<anonymous>)
    at toggleSubNav (second-level-navigation.js?v=9.2.0:19)
    at HTMLLIElement.<anonymous> (second-level-navigation.js?v=9.2.0:62)

Steps to reproduce

Create a main menu of three or more levels. In admin/structure/block/manage/olivero_main_menu set to display 4 menu levels and expand all menu links.

Proposed resolution

Rewrite second-level-navigation.js so that it can cater for more than two levels of menu. This was possible in the javascript for the 9.1 version of Olivero (albeit with some tweaking of the js)

✨ Feature request
Status

Closed: outdated

Version

11.0 πŸ”₯

Component
OliveroΒ  β†’

Last updated 9 days ago

Created by

πŸ‡³πŸ‡ΏNew Zealand kent@passingphase.nz

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.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Closing out as there hasn't been a follow up #16 but if still a valid request please reopen

    Thanks!

  • πŸ‡­πŸ‡ΊHungary szaszg

    Hello andy-blum,

    This is unblocked, but is it still an issue?

    How can i produce this menu?

    I try it with 10.1.8 and 10.4.1 but only "First submenu" appear...

    Thanks,
    Gergely

Production build 0.71.5 2024