fix(ui): 검색 input Enter 시 문서 열림 방지 (stopPropagation)

검색바에서 Enter → submitSearch()만 실행되어야 하는데
useListKeyboardNav의 window 리스너가 Enter를 잡아 selectDoc() 호출.
stopPropagation으로 이벤트 전파 차단.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hyungi Ahn
2026-04-16 11:28:55 +09:00
parent f4791cfada
commit 6bc52928b6
@@ -252,6 +252,7 @@
function handleSearchKeydown(e) {
if (e.key === 'Enter' && !e.isComposing) {
e.preventDefault();
e.stopPropagation(); // 키보드 nav의 Enter(selectDoc) 차단
submitSearch();
}
}