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

Commit

Permalink
Fikser feil i håndtering av Escape-press
Browse files Browse the repository at this point in the history
  • Loading branch information
terjeofnorway committed Dec 19, 2023
1 parent 73c9f79 commit ab5b6b8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/komponenter/header/logoutWarning/LogoutWarning.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ export const LogoutWarning = () => {
}

window.addEventListener('keydown', onKeydownHandler);

return () => {
window.removeEventListener('keydown', onKeydownHandler);
};
}, []);
}, [dialogRef.current]);

useEffect(() => {
if (isTokenExpiring || isSessionExpiring) {
Expand Down

0 comments on commit ab5b6b8

Please sign in to comment.