From 37507a3f2755554a3386cba739a70b7ed34e65ac Mon Sep 17 00:00:00 2001 From: optrader Date: Fri, 24 Oct 2025 20:57:23 +0900 Subject: [PATCH] [251024] fix: SearchInputOvelray update-1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🕐 커밋 시간: 2025. 10. 24. 20:57:22 📊 변경 통계: • 총 파일: 2개 • 추가: +7줄 • 삭제: -1줄 📝 수정된 파일: ~ com.twin.app.shoptime/src/views/SearchPanel/SearchInputOverlay.jsx ~ com.twin.app.shoptime/src/views/SearchPanel/SearchPanel.new.v2.jsx 🔧 함수 변경 내용: 📄 com.twin.app.shoptime/src/views/SearchPanel/SearchInputOverlay.jsx (javascript): 🔄 Modified: Spottable() --- .../src/views/SearchPanel/SearchInputOverlay.jsx | 6 +++++- .../src/views/SearchPanel/SearchPanel.new.v2.jsx | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/com.twin.app.shoptime/src/views/SearchPanel/SearchInputOverlay.jsx b/com.twin.app.shoptime/src/views/SearchPanel/SearchInputOverlay.jsx index 002a3096..fdd4c315 100644 --- a/com.twin.app.shoptime/src/views/SearchPanel/SearchInputOverlay.jsx +++ b/com.twin.app.shoptime/src/views/SearchPanel/SearchInputOverlay.jsx @@ -76,13 +76,17 @@ const SearchInputOverlay = ({ }) ); + // ✨ [Phase 1] API 호출 후 입력값 초기화 + // onSearchChange를 통해 SearchPanel의 searchQuery를 비우기 + onSearchChange({ value: '' }); + // API 호출 후 overlay 닫기 setTimeout(() => { onClose(); }, 100); } }, - [dispatch, addNormalSearch, onClose] + [dispatch, addNormalSearch, onClose, onSearchChange] ); const handleKeydown = useCallback( diff --git a/com.twin.app.shoptime/src/views/SearchPanel/SearchPanel.new.v2.jsx b/com.twin.app.shoptime/src/views/SearchPanel/SearchPanel.new.v2.jsx index dfad5f95..c181207b 100644 --- a/com.twin.app.shoptime/src/views/SearchPanel/SearchPanel.new.v2.jsx +++ b/com.twin.app.shoptime/src/views/SearchPanel/SearchPanel.new.v2.jsx @@ -624,6 +624,8 @@ export default function SearchPanel({ panelInfo, isOnTop, spotlightId }) { console.log('[DEBUG] 🚪 SearchInputOverlay closing'); } setIsSearchOverlayVisible(false); + // ✨ Overlay 닫힐 때 TInput 입력값 초기화 + setSearchQuery(''); // VoiceInputOverlay와 동일하게 닫힐 때 TInput으로 포커스 이동 setTimeout(() => { Spotlight.focus(SPOTLIGHT_IDS.SEARCH_INPUT_BOX);