I'm struggling with removing 'active' class from a link that is already selected.
Looking at the line 20 in JavaScript. Shouldn't classLink.toggle add / remove "active" on clickedElement? I even tried few approaches like
if (clickedElement.classList.contains('active')) {
clickedElement.classList.remove('active');
} else {
clickedElement.classList.add('active');
}
but none seem to work on this particular class (works fine on any other class i add). What am i missing?