[No Jira Issue] fix TypeError, 'ev.preventDefault is not a function'
1. PlayerPanel.jsx - ev 객체에 preventDefault 메서드가 있을 때만 호출하도록 수정
This commit is contained in:
@@ -34,6 +34,7 @@ import {
|
||||
} from "../../actions/playActions";
|
||||
import { convertUtcToLocal } from "../../components/MediaPlayer/util";
|
||||
import TPanel from "../../components/TPanel/TPanel";
|
||||
import TPopUp from "../../components/TPopUp/TPopUp";
|
||||
import Media from "../../components/VideoPlayer/Media";
|
||||
import TReactPlayer from "../../components/VideoPlayer/TReactPlayer";
|
||||
import { VideoPlayer } from "../../components/VideoPlayer/VideoPlayer";
|
||||
@@ -49,7 +50,6 @@ import PlayerOverlayQRCode from "./PlayerOverlay/PlayerOverlayQRCode";
|
||||
import css from "./PlayerPanel.module.less";
|
||||
import PlayerTabButton from "./PlayerTabContents/TabButton/PlayerTabButton";
|
||||
import TabContainer from "./PlayerTabContents/TabContainer";
|
||||
import TPopUp from "../../components/TPopUp/TPopUp";
|
||||
|
||||
const Container = SpotlightContainerDecorator(
|
||||
{ enterTo: "default-element", preserveld: true },
|
||||
@@ -825,6 +825,7 @@ const PlayerPanel = ({
|
||||
},
|
||||
[resetTimer, videoVerticalVisible]
|
||||
);
|
||||
|
||||
const onClickBack = useCallback(
|
||||
(ev, isEnd) => {
|
||||
//modal로부터 Full 전환된 경우 다시 preview 모드로 돌아감.
|
||||
@@ -836,7 +837,7 @@ const PlayerPanel = ({
|
||||
) {
|
||||
setSideContentsVisible(false);
|
||||
ev?.stopPropagation();
|
||||
ev?.preventDefault();
|
||||
if (ev && typeof ev.preventDefault === "function") ev.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -860,8 +861,8 @@ const PlayerPanel = ({
|
||||
})
|
||||
);
|
||||
}
|
||||
//ev?.stopPropagation();
|
||||
ev?.preventDefault();
|
||||
// ev?.stopPropagation();
|
||||
if (ev && typeof ev.preventDefault === "function") ev.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -869,7 +870,7 @@ const PlayerPanel = ({
|
||||
dispatch(PanelActions.popPanel());
|
||||
dispatch(changeAppStatus({ cursorVisible: false }));
|
||||
// ev?.stopPropagation();
|
||||
ev?.preventDefault();
|
||||
if (ev && typeof ev.preventDefault === "function") ev.preventDefault();
|
||||
return;
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user