How do I hidden navigation menu item if its sub item is hidden?
Hey @Kenny2,
Interesting use-case.
You can add this to the hide
input of your menu item:
Object.values(navigation1.menuItems[1].menuItems).every(
value => value.hidden == true
)
Be sure to change menuItems[1]
with the actual index of your menuItem.
Does that work?