When disabling the first item of the second level, the rest of the items appear as a first level items

Created on 29 May 2022, over 2 years ago
Updated 4 May 2023, over 1 year ago

Problem/Motivation

The second level items appear as first-level items on the mega menu, this issue appears when trying to disable the first child for the first level items if we disable it, the rest of the 2nd level items will appear as first-level items

Steps to reproduce

- item 1
-- item 1a (disabled)
--- item 1a1
--- item 1a2
-- item 1b
-- item 1c
- item 2 
-- item 2a 
- item 3

(the disabled item should have enabled children to produce the issue)

Results in:

- item 1
- item 1b (this is assigned to the wrong parent!) added as 1st level
- item 1c (this is assigned to the wrong parent!) added as 1st level
- item 2 
-- item 2a 
- item 3

Proposed resolution

This needs to load all menu tree without adding onlyEnabledLinks() parameter, then check it the menu link enabled ot not.

🐛 Bug report
Status

Needs review

Version

1.13

Component

Code

Created by

🇯🇴Jordan n.ghunaim Amman - Jordan

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