Skip to content

Commit

Permalink
Merge pull request #2157 from graphcommerce-org/bug/GCOM-1314-scrolle…
Browse files Browse the repository at this point in the history
…r-button-fix

Related products slider prev/next buttons do not work (GCOM-1314)
  • Loading branch information
paales authored Jan 15, 2024
2 parents c550a5d + b1afcd0 commit 37cd9a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/modern-squids-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphcommerce/framer-scroller": patch
---

Fixed bug which caused the scrollerButton to become unclickable
5 changes: 1 addition & 4 deletions packages/framer-scroller/components/ScrollerButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ export const ScrollerButton = m(
{...buttonProps}
onClick={handleClick}
aria-label={direction}
sx={[
{ transition: 'all 250ms', zIndex: 'inherit', ...mode },
...(Array.isArray(sx) ? sx : [sx]),
]}
sx={[{ transition: 'all 250ms', ...mode }, ...(Array.isArray(sx) ? sx : [sx])]}
/>
</MotionDiv>
)
Expand Down

0 comments on commit 37cd9a3

Please sign in to comment.