[SHOPTIME-3445] Product Detail / 썸네일 리스트 포커스가 초기화 되지 않음

재현경로:  detail 패널 진입 shop by mobile 에 포커스 된 상태에서
좌방향키 입력하여 세로 인디케이터에서 하방향키 여러번 누르고 다른 아이템
enter 후 back 키 입력. 다시 동일 detail 진입 후 shop by mobile 에서 좌
키 입력시 기존 포커스로 감.
원인 : spotlight container 초기화 오류
대책 : detail 패널 종료시 spotlight container 초기화 해줌.
This commit is contained in:
yonghyon
2024-09-30 17:12:57 +09:00
parent d1801d500e
commit 280772e1ad

View File

@@ -19,6 +19,7 @@ import {
setHidePopup, setHidePopup,
} from '../../actions/commonActions'; } from '../../actions/commonActions';
import { clearCouponInfo } from '../../actions/couponActions'; import { clearCouponInfo } from '../../actions/couponActions';
import { setContainerLastFocusedElement } from "@enact/spotlight/src/container";
import { getDeviceAdditionInfo } from '../../actions/deviceActions'; import { getDeviceAdditionInfo } from '../../actions/deviceActions';
import { import {
clearThemeDetail, clearThemeDetail,
@@ -377,6 +378,8 @@ export default function DetailPanel({ panelInfo, isOnTop, spotlightId }) {
dispatch(clearProductDetail()); dispatch(clearProductDetail());
dispatch(clearThemeDetail()); dispatch(clearThemeDetail());
dispatch(clearCouponInfo()); dispatch(clearCouponInfo());
//[SHOPTIME-3445]
setContainerLastFocusedElement(null, ["indicator-GridListContainer"]);
}; };
}, [dispatch]); }, [dispatch]);