You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Navigation Submenu: Parent dropdown arrow and submenu container visible on viewports where all children are hidden #78147
When all child items of a core/navigation-submenu block are hidden on a specific viewport block, the parent item still renders its dropdown arrow and submenu container on that viewport.
On further check, it looks like items hidden via "Hide on Desktop/Tablet/Mobile" still emit their full HTML and the hiding is handled purely by CSS via wp-block-hidden-* classes on the child <li>. So $inner_blocks_html is never empty, and $has_submenu is always true regardless of visibility settings.
For each child, click on three dots for block settings > Hide > select all viewport options.
Save and preview on the front end
Expected: The parent item renders as a plain link with no dropdown arrow and no submenu container, since there are no visible children on
any viewport.
Actual: The parent item still shows a dropdown arrow and renders an empty submenu container
Activity
youknowriad commentedon Aug 27, 2026
I'm closing this issue per @jeryj's comment on the PR.
jeryj commentedon Aug 27, 2026
I think it's still a valid issue - I just wasn't sure about the fix in #78148. Should we reopen this?
youknowriad commentedon Aug 27, 2026
I thought you said, it's too edge casy. I'm fine either way, your call.