[251119] fix: ProductAllSection BuyNow버튼 포커스 이동

🕐 커밋 시간: 2025. 11. 19. 09:22:01

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

📝 수정된 파일:
  ~ com.twin.app.shoptime/src/views/DetailPanel/ProductAllSection/ProductAllSection.jsx
This commit is contained in:
2025-11-19 09:22:02 +09:00
parent fec9919221
commit cac42de0ca

View File

@@ -894,10 +894,13 @@ export default function ProductAllSection({
// BUY NOW, ADD TO CART 버튼에서 arrow up 시: 항상 헤더 뒤로가기 버튼으로
const handleSpotlightUpFromBuyButtons = useCallback((e) => {
e.stopPropagation();
if(promotions){
if(promotions && promotions.length > 0){
Spotlight.focus('detail-coupon-button');
} else {
Spotlight.focus('spotlightId_backBtn');
// 쿠폰 버튼이 없을 때 뒤로가기 버튼으로 포커스 이동 (특정 Chrome 버전에서의 포커스 문제 해결)
setTimeout(() => {
Spotlight.focus('spotlightId_backBtn');
}, 0);
}
}, [promotions]);