From e97b8d931b52d9e2cfb3a3e6d3ea7543ef027a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20Br=C3=A5then=20Nomerstad?= Date: Wed, 21 Feb 2024 11:07:53 +0100 Subject: [PATCH] =?UTF-8?q?Hindrer=20del-skjerm=20"lenke"=20fra=20=C3=A5?= =?UTF-8?q?=20oppf=C3=B8re=20seg=20som=20en=20lenke?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../footer/common/del-skjerm-lenke/DelSkjermLenke.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/komponenter/footer/common/del-skjerm-lenke/DelSkjermLenke.tsx b/src/komponenter/footer/common/del-skjerm-lenke/DelSkjermLenke.tsx index a482b6ae3..c2fefd5a0 100644 --- a/src/komponenter/footer/common/del-skjerm-lenke/DelSkjermLenke.tsx +++ b/src/komponenter/footer/common/del-skjerm-lenke/DelSkjermLenke.tsx @@ -11,7 +11,9 @@ import style from './DelSkjermLenke.module.scss'; export const DelSkjermLenke = () => { const [isOpen, setIsOpen] = useState(false); - const openModal = () => { + const openModal = (event: React.MouseEvent) => { + event.preventDefault(); + analyticsEvent({ eventName: 'Modal åpnet', category: AnalyticsCategory.Footer,