[shoptime-3994] 라이브 상품 클릭시 포커스 수정

This commit is contained in:
jiwon93.son
2025-11-07 14:14:16 +09:00
committed by opacity@t-win.kr
parent 6936c80a82
commit 5a8d44ed79

View File

@@ -327,7 +327,6 @@ const PlayerPanel = ({
const panelInfoRef = usePrevious(panelInfo);
const initialFocusTimeoutJob = useRef(new Job((func) => func(), 100));
const shopNowFocusTimeoutJob = useRef(new Job((func) => func(), 100));
const liveLogParamsRef = useRef(null);
const vodLogParamsRef = useRef(null);
const mediaLogParamsRef = useRef(null);
@@ -1035,23 +1034,6 @@ const PlayerPanel = ({
}
if (!panelInfo.modal && !videoVerticalVisible && !hasProperSpot) {
if (
panelInfo.sourcePanel === "featuredbrandspanel" &&
shopNowInfo?.length > 0
) {
const shopNowElement = document.querySelector(
'[data-spotlight-id="playVideoShopNowBox"]'
);
if (shopNowElement) {
Spotlight.focus("playVideoShopNowBox");
} else {
shopNowFocusTimeoutJob.current.start(() => {
Spotlight.focus("playVideoShopNowBox");
});
}
return;
}
Spotlight.focus(SpotlightIds.PLAYER_TAB_BUTTON);
return;
}