Neue Events für Dezember 25 #2
@ -39,7 +39,7 @@ const {title, description, image = "", date} = Astro.props;
|
||||
|
||||
// Close card when clicking outside (mobile only)
|
||||
document.addEventListener('click', (e) => {
|
||||
if (window.innerWidth <= 768 && !card.contains(e.target)) {
|
||||
if (window.innerWidth <= 768 && !card.contains(e.target as Node)) {
|
||||
card.classList.remove('active');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user