[251217] fix: TabContainer.v2.jsx ShopNowButton 포커스 10ms

🕐 커밋 시간: 2025. 12. 17. 09:13:23

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

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductDescription/ProductDescription.jsx
  ~ com.twin.app.shoptime/src/views/PlayerPanel/PlayerTabContents/v2/TabContainer.v2.jsx
This commit is contained in:
2025-12-17 09:13:23 +09:00
parent d83e9d38f0
commit 4dfa15b4c0
2 changed files with 5 additions and 1 deletions

View File

@@ -76,6 +76,10 @@ export default function ProductDescription({ productInfo }) {
const _onClose = useCallback(()=>{
dispatch(setHidePopup());
// Restore focus to the description content after popup closes
setTimeout(() => {
Spotlight.focus('product-description-content');
}, 100);
},[dispatch])
// ProductDescription: Container 직접 사용 패턴

View File

@@ -196,7 +196,7 @@ export default function TabContainerV2({
// tabIndex = 2 (ShopNowButton)
const timeoutId = setTimeout(() => {
Spotlight.focus('below-tab-shop-now-button');
}, 100);
}, 10);
return () => clearTimeout(timeoutId);
}
}, []);