[TrendingNowPanel] topButton focus 예외처리
This commit is contained in:
@@ -162,7 +162,13 @@ const TrendingNowPanel = ({ panelInfo, spotlightId }) => {
|
||||
cbChangePageRef.current(0, true);
|
||||
}
|
||||
if (!targetId) {
|
||||
Spotlight.focus("popular_video");
|
||||
if (topInfos && topInfos.length > 0) Spotlight.focus("popular_video");
|
||||
else {
|
||||
if (bestSellerDatas && bestSellerDatas.length > 0)
|
||||
Spotlight.focus(
|
||||
"bs-spotlightId-" + removeDotAndColon(bestSellerDatas[0]?.prdtId)
|
||||
);
|
||||
}
|
||||
return;
|
||||
}
|
||||
timerRef.current = setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user