[shoptime-3994] 라이브 상품 클릭시 포커스 수정
This commit is contained in:
committed by
opacity@t-win.kr
parent
6936c80a82
commit
5a8d44ed79
@@ -327,7 +327,6 @@ const PlayerPanel = ({
|
|||||||
const panelInfoRef = usePrevious(panelInfo);
|
const panelInfoRef = usePrevious(panelInfo);
|
||||||
|
|
||||||
const initialFocusTimeoutJob = useRef(new Job((func) => func(), 100));
|
const initialFocusTimeoutJob = useRef(new Job((func) => func(), 100));
|
||||||
const shopNowFocusTimeoutJob = useRef(new Job((func) => func(), 100));
|
|
||||||
const liveLogParamsRef = useRef(null);
|
const liveLogParamsRef = useRef(null);
|
||||||
const vodLogParamsRef = useRef(null);
|
const vodLogParamsRef = useRef(null);
|
||||||
const mediaLogParamsRef = useRef(null);
|
const mediaLogParamsRef = useRef(null);
|
||||||
@@ -1035,23 +1034,6 @@ const PlayerPanel = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!panelInfo.modal && !videoVerticalVisible && !hasProperSpot) {
|
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);
|
Spotlight.focus(SpotlightIds.PLAYER_TAB_BUTTON);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user