Resolve #3406162 "Automatic scroll for"
1 unresolved thread
Closes #3406162
Merge request reports
Activity
added 1 commit
- Edited by Jatin Gupta
added 1 commit
- Resolved by Jatin Gupta
- Resolved by Jatin Gupta
- Resolved by Jatin Gupta
- Resolved by Jatin Gupta
added 1 commit
added 1 commit
- Resolved by Jatin Gupta
- Resolved by Jatin Gupta
- js/toolbar-menu-scroll.js 0 → 100644
1 ((Drupal, once) => { 2 Drupal.behaviors.customDropdownScroll = { 3 attach: (context) => { 4 once( 5 'toolbar-block__list', 6 context.querySelectorAll('.toolbar-block__list'), 7 ).forEach((toolBarMenu) => { 8 // Get all the node that have nested list. 9 var menuList = toolBarMenu.querySelector('ul'); 10 11 if (menuList) { 12 toolBarMenu.addEventListener('click', (event) => { 13 var clickedMenu = event.target.closest('ul li'); you can catch this event somewhere https://git.drupalcode.org/project/navigation/-/blob/1.x/js/toolbar-menu.js#L64
it will be easier than search it again
changed this line in version 5 of the diff
added 1 commit
Please register or sign in to reply