hiding fix?
This commit is contained in:
		
							parent
							
								
									536e2fcacb
								
							
						
					
					
						commit
						2e91bd6b70
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		| 
						 | 
					@ -55,4 +55,13 @@ document.addEventListener("DOMContentLoaded", () => {
 | 
				
			||||||
            mobileNav.classList.remove("active");
 | 
					            mobileNav.classList.remove("active");
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    })
 | 
					    })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    document.addEventListener("touchstart", function(event) {
 | 
				
			||||||
 | 
					        const isInsideMobileNav = mobileNav.contains(event.target);
 | 
				
			||||||
 | 
					        const isClickToggle = mobileNavButton.contains(event.target);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if (!isInsideMobileNav && !isClickToggle){
 | 
				
			||||||
 | 
					            mobileNav.classList.remove("active");
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    })
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue