From faf7c6ad51624d1f570366f3d2a3609800b63988 Mon Sep 17 00:00:00 2001 From: Jose Manuel Serrano Amaut <a20122128@pucp.pe> Date: Thu, 16 Mar 2023 18:18:21 -0500 Subject: [PATCH] [FIX]: Add conditional for hidding border when dropOnLayer is true and isDragging is true --- .../components/dropzone/components/dropzone/Dropzone.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files-ui/components/dropzone/components/dropzone/Dropzone.tsx b/src/files-ui/components/dropzone/components/dropzone/Dropzone.tsx index 4b26c9d..1cbafa2 100644 --- a/src/files-ui/components/dropzone/components/dropzone/Dropzone.tsx +++ b/src/files-ui/components/dropzone/components/dropzone/Dropzone.tsx @@ -674,7 +674,7 @@ const Dropzone: React.FC<DropzoneProps> = (props: DropzoneProps) => { const finalDropzoneClassNameBorder: string | undefined = !dropzoneClassName ? undefined - : isDragging || disabled + : (isDragging && dropOnLayer) || disabled ? addClassName(dropzoneClassName, "files-ui-root-border-hide") : dropzoneClassName; -- GitLab