diff --git a/bun.lockb b/bun.lockb index e461fa2..ed95d95 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 86e5bc0..d65f91e 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "pubsub-js": "^1.9.4", "react": "18.2.0", "react-countup": "^6.5.3", - "react-dom": "18.2.0", + "react-dom": "^19.1.1", "react-i18next": "^14.1.0", "react-icons": "^5.2.1", "react-markdown": "8.0.0", diff --git a/src/components/Option/VideoPlayer/index.tsx b/src/components/Option/VideoPlayer/index.tsx index b647823..80b42b8 100644 --- a/src/components/Option/VideoPlayer/index.tsx +++ b/src/components/Option/VideoPlayer/index.tsx @@ -1,6 +1,7 @@ import React, { useEffect, useMemo, useRef, useState } from "react" import iodVideo from "@/public/video.mp4" import { useOptionLayoutContext } from "@/components/Layouts/Layout.tsx" +import { createPortal } from "react-dom" import { ExpandOutlined, PauseCircleOutlined, @@ -185,7 +186,6 @@ const VideoPlayer = () => { } } - video.addEventListener("loadedmetadata", handleLoadedMetadata) video.addEventListener("timeupdate", handleTimeUpdate) video.addEventListener("waiting", handleWaiting) @@ -326,7 +326,7 @@ const VideoPlayer = () => { onMouseLeave={handleMouseLeave}>