nav issue fixed
This commit is contained in:
parent
1d4a3430c4
commit
a12aa31ce6
@ -142,6 +142,7 @@ const themeSwitch = () => {
|
||||
}
|
||||
}
|
||||
|
||||
const nav = document.querySelector('header nav');
|
||||
window.addEventListener('click',(e)=>{
|
||||
if(e.target.closest('.nav-link')){
|
||||
if(e.target.closest('.nav-link').classList.contains('active')){
|
||||
|
Loading…
Reference in New Issue
Block a user