[포유] 탑버튼 처리
- 탑버튼 작동 처리
This commit is contained in:
@@ -75,12 +75,9 @@ const JustForYouTestPanel = ({ panelInfo, ...rest }) => {
|
||||
shelfInfos.length > 0 &&
|
||||
shelfInfos[0].productInfos?.length > 0
|
||||
) {
|
||||
const firstProduct = shelfInfos[0].productInfos[0];
|
||||
const target = `spotlightId-${shelfInfos[0].shelfId}-${removeDotAndColon(firstProduct.contentId)}`;
|
||||
Spotlight.focus(target);
|
||||
setContainerLastFocusedElement(null, [
|
||||
`${SpotlightIds.JUST_FOR_YOU_ITEMS}_${shelfInfos[0].shelfId}`,
|
||||
]);
|
||||
// const firstProduct = shelfInfos[0].productInfos[0];
|
||||
// const target = `spotlightId-${shelfInfos[0].shelfId}-${removeDotAndColon(firstProduct.contentId).replaceAll(" ", "")}`;
|
||||
Spotlight.focus("justForYouList_1");
|
||||
}
|
||||
}, [shelfInfos]);
|
||||
|
||||
@@ -133,7 +130,7 @@ const JustForYouTestPanel = ({ panelInfo, ...rest }) => {
|
||||
productName={title}
|
||||
productId={contentId}
|
||||
onClick={handleItemClick}
|
||||
spotlightId={`spotlightId-${shelfId}-${removeDotAndColon(contentId)}`}
|
||||
spotlightId={`spotlightId-${shelfId}-${removeDotAndColon(contentId).replaceAll(" ", "")}`}
|
||||
{...rest}
|
||||
/>
|
||||
);
|
||||
@@ -183,7 +180,7 @@ const JustForYouTestPanel = ({ panelInfo, ...rest }) => {
|
||||
css.itemsContainer,
|
||||
shelfIndex === 0 && css.itemsContinerFirst
|
||||
)}
|
||||
spotlightId={`${SpotlightIds.JUST_FOR_YOU_ITEMS}_${shelf.shelfId}`}
|
||||
spotlightId={`justForYouList_${shelf.shelfExpsOrd}`}
|
||||
data-wheel-point
|
||||
>
|
||||
<SectionTitle
|
||||
|
||||
Reference in New Issue
Block a user