[shoptime-3994] 예외 처리 추가

This commit is contained in:
jiwon93.son
2025-11-07 10:50:36 +09:00
committed by opacity@t-win.kr
parent a93ca90f94
commit 6936c80a82

View File

@@ -1039,9 +1039,17 @@ const PlayerPanel = ({
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);