[SHOPTIME-3330] Full Player 에서 Item Detail 로 이동 시 포커스 사라지는 현상 발생
[수정파일] 1. PlayerPanel.jsx [수정내용] 1. ShopNowInfo 데이터가 바뀌는 시점에서 PlayerPanel이 포커스를 뺏어감 , isOnTop이 아니라면 return
This commit is contained in:
@@ -790,7 +790,6 @@ const PlayerPanel = ({
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
console.log("PlayerPanel broadcast changed", broadcast);
|
||||
if (broadcast.type === "videoError") {
|
||||
//setShowVideoErrorComponent(true);
|
||||
//
|
||||
@@ -986,7 +985,7 @@ const PlayerPanel = ({
|
||||
|
||||
// videoClick focused
|
||||
useEffect(() => {
|
||||
if (!playListInfo) {
|
||||
if (!playListInfo || !isOnTop) {
|
||||
return;
|
||||
}
|
||||
setContainerLastFocusedElement(null, ["playVideoShopNowBox"]);
|
||||
@@ -1044,6 +1043,7 @@ const PlayerPanel = ({
|
||||
playListInfo,
|
||||
videoVerticalVisible,
|
||||
isInitialFocusOccurred,
|
||||
isOnTop,
|
||||
]);
|
||||
|
||||
// liveChannel initial selectedIndex
|
||||
|
||||
Reference in New Issue
Block a user