remove reaction (kind 7) and fix onclick event

This commit is contained in:
Ren Amamiya
2023-05-14 18:20:27 +07:00
parent 409a625dcc
commit b2199e81b8
7 changed files with 20 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ import { MediaOutlet, MediaPlayer } from "@vidstack/react";
export default function VideoPreview({ urls }: { urls: string[] }) {
return (
<div
onClick={(e) => e.stopPropagation()}
onKeyDown={(e) => e.stopPropagation()}
className="relative mt-2 flex w-full flex-col overflow-hidden rounded-lg bg-zinc-950"
>