diff --git a/apps/infoalloggi/src/components/annuncio_card.tsx b/apps/infoalloggi/src/components/annuncio_card.tsx index a9a2966..694b78d 100644 --- a/apps/infoalloggi/src/components/annuncio_card.tsx +++ b/apps/infoalloggi/src/components/annuncio_card.tsx @@ -70,7 +70,17 @@ export const LazyCardAnnuncio = (props: CardAnnuncioProps) => { }, [intersection]); return ( -
+
{ + e.preventDefault(); + e.stopPropagation(); + }} + onKeyDown={(e) => e.stopPropagation()} + ref={intersectionRef} + role="button" + tabIndex={0} + > {shouldRender ? : }
); @@ -155,7 +165,7 @@ export const CardAnnuncio = ({ >
{ - e.preventDefault(); - e.stopPropagation(); // Add this to the buttons too - }} /> { - e.preventDefault(); - e.stopPropagation(); // Add this to the buttons too - }} />