fix(slider): value prop not being passed

This commit is contained in:
Lucas Thevenet Cervantes
2023-02-05 03:41:00 -03:00
committed by GitHub
parent 1c27400c2c
commit d3153b66f7
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ import { cn } from "@/lib/utils"
const Slider = React.forwardRef<
React.ElementRef<typeof SliderPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
>(({ className, value, ...props }, ref) => (
>(({ className, ...props }, ref) => (
<SliderPrimitive.Root
ref={ref}
className={cn(

View File

@@ -8,7 +8,7 @@ import { cn } from "@/lib/utils"
const Slider = React.forwardRef<
React.ElementRef<typeof SliderPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof SliderPrimitive.Root>
>(({ className, value, ...props }, ref) => (
>(({ className, ...props }, ref) => (
<SliderPrimitive.Root
ref={ref}
className={cn(