[shoptime-3994] 예외 처리 추가
This commit is contained in:
committed by
opacity@t-win.kr
parent
a93ca90f94
commit
6936c80a82
@@ -1039,9 +1039,17 @@ const PlayerPanel = ({
|
|||||||
panelInfo.sourcePanel === "featuredbrandspanel" &&
|
panelInfo.sourcePanel === "featuredbrandspanel" &&
|
||||||
shopNowInfo?.length > 0
|
shopNowInfo?.length > 0
|
||||||
) {
|
) {
|
||||||
shopNowFocusTimeoutJob.current.start(() => {
|
const shopNowElement = document.querySelector(
|
||||||
|
'[data-spotlight-id="playVideoShopNowBox"]'
|
||||||
|
);
|
||||||
|
|
||||||
|
if (shopNowElement) {
|
||||||
Spotlight.focus("playVideoShopNowBox");
|
Spotlight.focus("playVideoShopNowBox");
|
||||||
});
|
} else {
|
||||||
|
shopNowFocusTimeoutJob.current.start(() => {
|
||||||
|
Spotlight.focus("playVideoShopNowBox");
|
||||||
|
});
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Spotlight.focus(SpotlightIds.PLAYER_TAB_BUTTON);
|
Spotlight.focus(SpotlightIds.PLAYER_TAB_BUTTON);
|
||||||
|
|||||||
Reference in New Issue
Block a user