From a517b5419c888dd5263a10021c9b854894297417 Mon Sep 17 00:00:00 2001 From: Vxrcel Date: Sun, 28 Jul 2024 22:35:54 +0100 Subject: [PATCH] scroll action modal to view --- .../products/_components/product-body-shadcn.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/dashboard/(user-dashboard)/products/_components/product-body-shadcn.tsx b/src/app/dashboard/(user-dashboard)/products/_components/product-body-shadcn.tsx index d66a77bce..3bd423007 100644 --- a/src/app/dashboard/(user-dashboard)/products/_components/product-body-shadcn.tsx +++ b/src/app/dashboard/(user-dashboard)/products/_components/product-body-shadcn.tsx @@ -36,7 +36,7 @@ const ProductBodyShadcn = ({ useEffect(() => { if (!isActionModal || !modalReference.current) return; - + modalReference.current.scrollIntoView({ behavior: "smooth" }); // handle click outside modal const handleOutsideClick = (event: MouseEvent) => { if (