From 23083c2ef5ac7701dbc1bac9b957ab9eb344a602 Mon Sep 17 00:00:00 2001 From: chenpei Date: Wed, 19 Aug 2026 11:22:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=B8=8A=E4=BC=A0=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E5=85=B3=E9=97=AD=E5=8A=A8=E6=95=88=E9=81=BF=E5=BC=80=20contex?= =?UTF-8?q?tSafe=20=E5=8F=AF=E8=83=BD=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/UploadModal.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/UploadModal.tsx b/components/UploadModal.tsx index 4e968f9..85412de 100644 --- a/components/UploadModal.tsx +++ b/components/UploadModal.tsx @@ -265,6 +265,8 @@ export default function UploadModal({ onClose, onSuccess }: UploadModalProps) { ) }) + if (!contextSafe) return + closeAnimatedRef.current = contextSafe(() => { const reduced = window.matchMedia('(prefers-reduced-motion: reduce)').matches if (reduced || !overlayRef.current || !panelRef.current) {