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:
@@ -252,6 +252,7 @@
|
||||
function handleSearchKeydown(e) {
|
||||
if (e.key === 'Enter' && !e.isComposing) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation(); // 키보드 nav의 Enter(selectDoc) 차단
|
||||
submitSearch();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user