Skip to content
Snippets Groups Projects

Resolve #3406162 "Automatic scroll for"

1 unresolved thread

Closes #3406162

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • m4olivei
  • m4olivei
  • m4olivei
  • Jatin Gupta added 1 commit

    added 1 commit

    Compare with previous version

  • Jatin Gupta added 1 commit

    added 1 commit

    Compare with previous version

  • Jatin Gupta resolved all threads

    resolved all threads

  • m4olivei
  • m4olivei
  • Jatin Gupta resolved all threads

    resolved all threads

  • 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');
  • Jatin Gupta added 1 commit

    added 1 commit

    Compare with previous version

  • Please register or sign in to reply
    Loading