From 6450962dbe61f42867041e65a44d29609bc6b271 Mon Sep 17 00:00:00 2001 From: albdert Date: Mon, 23 Nov 2026 12:53:43 +0100 Subject: [PATCH] =?UTF-8?q?mus=20hover=20og=20valg=20med=20piltaster=20fun?= =?UTF-8?q?ker=20n=C3=A5=20som=20forventet?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/GameSearch/GameSearch.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/GameSearch/GameSearch.tsx b/frontend/src/components/GameSearch/GameSearch.tsx index f28505ad..8d5500f9 100644 --- a/frontend/src/components/GameSearch/GameSearch.tsx +++ b/frontend/src/components/GameSearch/GameSearch.tsx @@ -284,7 +284,10 @@ export function GameSearch({ e.preventDefault(); choose(option); }} + // Musa og piltastene deler markeringen. Når musa forlater forslaget, + // fjernes markeringen, så Enter ikke åpner et spill musa var over tidligere onMouseEnter={() => setActive(i)} + onMouseLeave={() => setActive(-1)} > {option.type === 'game' ? ( <>