From b19843fa967987e30fd95e3173fd3a92a76b507b Mon Sep 17 00:00:00 2001 From: "jiwon93.son" Date: Fri, 7 Nov 2025 10:50:36 +0900 Subject: [PATCH] =?UTF-8?q?[shoptime-3994]=20=EC=98=88=EC=99=B8=20?= =?UTF-8?q?=EC=B2=98=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/PlayerPanel/PlayerPanel.jsx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx index b93ea95c..6e7d60fa 100644 --- a/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx +++ b/com.twin.app.shoptime/src/views/PlayerPanel/PlayerPanel.jsx @@ -1020,9 +1020,17 @@ const PlayerPanel = ({ panelInfo.sourcePanel === "featuredbrandspanel" && shopNowInfo?.length > 0 ) { - shopNowFocusTimeoutJob.current.start(() => { + 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);