Closed (fixed)
Project:
Drupal core
Version:
main
Component:
Olivero theme
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jan 2026 at 15:47 UTC
Updated:
26 Feb 2026 at 06:59 UTC
Jump to comment: Most recent
Comments
Comment #2
mherchelCrediting @mandclu who reported the issue at https://drupal.slack.com/archives/C0D5GJZ8B/p1768834175431069
Comment #4
mherchelComment #5
mherchelThe MR above moves the event listeners into a new Drupal behavior.
Comment #6
mherchelComment #7
mandclu commentedI tested this on a fresh install of Drupal 11.3. Where previously it would show just the context menu but not the dropdown for nested items in the main navigation on hover, with the patch applied the menu works as expected even when logged in as an admin.
Comment #8
godotislateI was curious about why HTMX would make a difference, if the issue was that Olivero did not use behaviors, so I did some investigation with these steps:
On
11.2.x,the hover behavior of the home link on the first cold page load does not work as expected. It does work subsequently on reloads. This does confirm it's Big Pipe related, but 11.2.x does not use HTMX for Big Pipe.I also tested against
11.1.x, and the hover behavior of the home link on the first cold page load does work as expected. If anything, either the issue was introduced between 11.1.x and 11.2.x (not going to do a git bisect now) or it was a race condition.Comment #9
catchBased on #8, pretty sure it was #3437499: Use placeholdering for more blocks - before that issue, the main menu would be rendered with the main content, after that issue, on cache misses, it's rendered via big pipe, on cache hits, as part of the main content again (due to another change that landed in 11.2).
Comment #11
lauriiiReviewed the patch and made the following improvements:
init(el)parameter toinit(navElement)to avoid variable shadowing with theelused inside theforEachcallbacksinit()functiononce()to prevent duplicate handlers when the behavior is attached to multiple elementsComment #12
godotislateTested updated MR locally with same steps per #8 and still works as expected.
Comment #17
lauriiiThank you for the review @godotislate! Committed 🚀