From 5f410faaa9fbe4a9c344aae46f72ffb565beda84 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 21 Mar 2026 09:56:08 +0200 Subject: [PATCH] fix(video): consume event to prevent clicking through it --- apps/client/src/widgets/type_widgets/file/Video.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/client/src/widgets/type_widgets/file/Video.tsx b/apps/client/src/widgets/type_widgets/file/Video.tsx index 1bd43a9784..180b8ce4db 100644 --- a/apps/client/src/widgets/type_widgets/file/Video.tsx +++ b/apps/client/src/widgets/type_widgets/file/Video.tsx @@ -40,6 +40,7 @@ export function VideoPreviewContent({ url, mime }: { url: string, mime: string } }, []); const onVideoClick = useCallback((e: MouseEvent) => { + e.stopPropagation(); if ((e.target as HTMLElement).closest(".media-preview-controls")) return; togglePlayback(); }, [togglePlayback]);