[251029] fix: SearchInputOverlay select수정

🕐 커밋 시간: 2025. 10. 29. 10:10:02

📊 변경 통계:
  • 총 파일: 1개
  • 추가: +3줄
  • 삭제: -1줄

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/views/SearchPanel/SearchInputOverlay.jsx
This commit is contained in:
2025-10-29 10:10:02 +09:00
parent ee9e66da24
commit 5f99661b6c

View File

@@ -143,7 +143,9 @@ const SearchInputOverlay = ({
if (input) {
// 입력 필드에 포커스
input.focus();
input.select(); // 기존 텍스트가 있으면 선택
// 커서를 마지막 위치로 이동 (텍스트 선택 대신)
const length = input.value.length;
input.setSelectionRange(length, length);
console.log('[SearchInputOverlay] 📍 Input focused and ready for input');
}
}