* Fix ShareVideo modal problem * Fix * Revert modal transfer
@@ -717,7 +717,14 @@ const VideoPlayerComponent: ForwardRefRenderFunction<HTMLVideoElement, VideoPlay
className={className}
isSettingsPopoverOpened={isSettingsPopoverOpened}
>
- <div data-vjs-player onClick={() => handlePlayPause()}>
+ <div
+ data-vjs-player
+ onClick={() => {
+ if (!(isShareDialogOpen || isSharingOverlayOpen)) {
+ handlePlayPause()
+ }
+ }}
+ >
{needsManualPlay && (
<BigPlayButtonContainer
onClick={() => {
@@ -63,7 +63,12 @@ export const VideoShare: FC<VideoShareProps> = ({
}
if (!isEmbedded) {
return (
- <DialogModal title="Share video" show={isShareDialogOpen} onExitClick={onCloseShareDialog}>
+ <DialogModal
+ title="Share video"
+ show={isShareDialogOpen}
+ onClickOutside={onCloseShareDialog}
+ onExitClick={onCloseShareDialog}
<VideoShareContent {...commonVideoShareContentProps} />
</DialogModal>
)