From 6bc52928b6bebb72ee5f634cb58c3ca4bdb65657 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Thu, 16 Apr 2026 11:28:55 +0900 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=EA=B2=80=EC=83=89=20input=20Enter?= =?UTF-8?q?=20=EC=8B=9C=20=EB=AC=B8=EC=84=9C=20=EC=97=B4=EB=A6=BC=20?= =?UTF-8?q?=EB=B0=A9=EC=A7=80=20(stopPropagation)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 검색바에서 Enter → submitSearch()만 실행되어야 하는데 useListKeyboardNav의 window 리스너가 Enter를 잡아 selectDoc() 호출. stopPropagation으로 이벤트 전파 차단. Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/routes/documents/+page.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/routes/documents/+page.svelte b/frontend/src/routes/documents/+page.svelte index 4690fe4..7662f78 100644 --- a/frontend/src/routes/documents/+page.svelte +++ b/frontend/src/routes/documents/+page.svelte @@ -252,6 +252,7 @@ function handleSearchKeydown(e) { if (e.key === 'Enter' && !e.isComposing) { e.preventDefault(); + e.stopPropagation(); // 키보드 nav의 Enter(selectDoc) 차단 submitSearch(); } }