ignores wrapping element on click

PHOTO EMBED

Wed Oct 11 2023 05:36:53 GMT+0000 (Coordinated Universal Time)

Saved by @davidmchale #javascript #ignorewrapper #click

   const sibling = el.previousElementSibling; // parent wrapper
    
      if (sibling) {
        const classList = sibling.getAttribute('class');
        if (classList !== null && classList !== undefined && classList !== '') {
          if (sibling.classList.contains(navLinkClass)) {
           	// do something
          }
        }
      }
content_copyCOPY