- Issue created by @omarvs91
- 🇳🇱Netherlands thomas.dutch
We are experiencing the same issue after updating Admin Toolbar. When logged out, the dropdown menu works. When logged in the dropdown menu does not open without any errors in the console or Drupal log.
- 🇮🇳India Harish1688 India
Hi,
Tried to reproduced the issue on local, turned the version in 8.x-2.5 to 3.3.0, but not find any dropdown issue with admin toolbar. attached a video where everything working fine dropdown.mp4 .
can you provide more info like screenshot, video to reproduce this.
- 🇳🇱Netherlands thomas.dutch
Hi Harish1688,
Thank you for your response. The issue has been resolved by using the core/once library for the custom hover menu, eg:
- (function(Drupal) { +(function(Drupal, drupalSettings, once) { - const toggleElements = context.getElementsByClassName("navbar-toggler"); - Array.from(toggleElements).forEach(element => { + const toggleElements = once("navbar-toggler", ".navbar-toggler", context); + toggleElements.forEach(element => {
Regards,
Thomas
- Status changed to Closed: works as designed
over 1 year ago 10:42am 19 April 2023