Skip to content

Commit c3307ea

Browse files
Fix: Carousel 'draggable' option
The 'draggable' option is not a valid option for the Embla Carousel. Removing it from the options object in Carousel.tsx.
1 parent d463eb6 commit c3307ea

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/components/ui/carousel/Carousel.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import * as React from "react"
32
import useEmblaCarousel from "embla-carousel-react"
43
import { cn } from "@/lib/utils"
@@ -26,7 +25,6 @@ export const Carousel = React.forwardRef<
2625
...opts,
2726
axis: orientation === "horizontal" ? "x" : "y",
2827
dragFree: false,
29-
draggable: false,
3028
duration: 30, // Transition plus rapide pour le fade
3129
},
3230
plugins

0 commit comments

Comments
 (0)