Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1530 from navikt/fix-del-skjerm-lenke
Browse files Browse the repository at this point in the history
preventDefault på del-skjerm "lenke"
  • Loading branch information
anders-nom authored Feb 21, 2024
2 parents 922dad2 + e97b8d9 commit a9329d0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a9329d0

Please sign in to comment.