From 5a9535f3d40db5636c6d9331aac123fd9314c961 Mon Sep 17 00:00:00 2001 From: Emir Morgan <53477261+emirmorgan@users.noreply.github.com> Date: Wed, 2 Aug 2023 22:45:00 +0300 Subject: [PATCH] Disable scrolling to the top when switching between variants with arrow --- components/product/gallery.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/product/gallery.tsx b/components/product/gallery.tsx index 99742a917..ed4924139 100644 --- a/components/product/gallery.tsx +++ b/components/product/gallery.tsx @@ -47,11 +47,17 @@ export function Gallery({ images }: { images: { src: string; altText: string }[] aria-label="Previous product image" href={previousUrl} className={buttonClassName} + scroll={false} >
- +