πŸ‡ΊπŸ‡ΈUnited States @mario.elias

Account created on 30 October 2018, over 5 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States mario.elias

I try updating TB Mega Menu JavaScript code for triggering dropdowns with click events instead of hover.
I have noticed the file modules/contrib/tb_megamenu/js/plugin.js has a hover Event Listeners for Desktop:
Below appear to be where the original hover functionality for non-touch devices is implemented.

this.navParent.querySelectorAll('.tbm-item').forEach((element) => {
  element.addEventListener('mouseenter', (event) => {
    if (!_this.isMobile && !_this.hasArrows) {
      _this.showMenu(element, _this.mm_timeout);
    }
  });

  element.addEventListener('mouseleave', (event) => {
    if (!_this.isMobile && !_this.hasArrows) {
      _this.hideMenu(element, _this.mm_timeout);
    }
  });
});

I tried replacing with Click Event Listeners by replace these mouseenter and mouseleave event listeners with a click event listener. See my change below

this.navParent.querySelectorAll('.tbm-item').forEach((element) => {
  element.addEventListener('click', (event) => {
    if (!_this.isMobile && !_this.hasArrows) {
      if (element.classList.contains('open')) {
        _this.hideMenu(element, _this.mm_timeout);
      } else {
        _this.showMenu(element, _this.mm_timeout);
      }
    }
  });
});

can someone familiar with the code assist.

πŸ‡ΊπŸ‡ΈUnited States mario.elias

Can someone guide me on setting up TB Mega Menu to open dropdowns on click instead of hover?
I am drupal/tb_megamenu Versions : * 3.0.0-alpha2
Thank you Mario

πŸ‡ΊπŸ‡ΈUnited States mario.elias

i found a documentation to uninstalling Web Page Archive
drush web-page-archive-prepare-uninstall
# or
drush wpa-pu
https://www.drupal.org/docs/8/modules/web-page-archive/uninstalling-web-... β†’

πŸ‡ΊπŸ‡ΈUnited States mario.elias

I'm encountering the same issue with utilizing multiple tags. In version 1.6, we employed tags for all pages and a secondary tag for a select few. This is necessary as we are using two distinct analytics accounts.. Please advise what should do.

Production build https://api.contrib.social 0.61.6-2-g546bc20