[상품 상세 버튼 눌렀을시에 포커스 처리 수정]

- 버튼별각 섹션에 포커스 가도록 변경.
 - SHOPTIME-4036 1번 관련 처리.
This commit is contained in:
junghoon86.park
2025-12-01 09:51:26 +09:00
parent 8ebaf3f19a
commit 579512402e

View File

@@ -975,6 +975,9 @@ export default function ProductAllSection({
// User Reviews 스크롤 핸들러 추가
const handleUserReviewsClick = useCallback(() => {
scrollToSection('scroll-marker-user-reviews');
setTimeout(()=>{
Spotlight.focus("user-reviews-container");
},100)
}, [scrollToSection]);
// ProductVideo V1 전용 - MediaPanel minimize 포함
@@ -1204,11 +1207,17 @@ export default function ProductAllSection({
// Source의 handleIndicatorOptions와 동일한 로깅 기능 추가
handleIndicatorOptions();
setTimeout(()=>{
Spotlight.focus("product-description-content")
},100);
}, [scrollToSection, dispatch, handleIndicatorOptions]);
const handleYouMayAlsoLikeClick = useCallback(() => {
dispatch(minimizeModalMedia());
scrollToSection('scroll-marker-you-may-also-like');
setTimeout(()=>{
Spotlight.focus("detail_youMayAlsoLike_area")
},100);
}, [scrollToSection, dispatch]);
// 헤더 Back 아이콘에서 아래로 내려올 때 첫 번째 버튼을 바라보도록 설정
useEffect(() => {