From 80bb15a7dcfa89873284b5d549bb72aac269e0ac Mon Sep 17 00:00:00 2001 From: Emir Morgan <53477261+emirmorgan@users.noreply.github.com> Date: Fri, 4 Aug 2023 00:04:44 +0300 Subject: [PATCH] Disable scrolling to the top when switching between gallery images with arrow buttons (#1139) --- 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 d1f567aef..eabc500e3 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} >
- +