Skip to content

Commit b35a796

Browse files
committed
fix: fix the issue where the value of sider is not taking effect.
1 parent bbb34c0 commit b35a796

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/ui/src/components/slider/Slider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ const Slider = forwardRef<ComponentRef<typeof SliderRoot>, SliderProps>((props,
1313
return (
1414
<SliderRoot
1515
className={className || classNames?.root}
16+
defaultValue={defaultValue}
1617
ref={ref}
1718
size={size}
19+
value={value}
1820
{...rest}
1921
>
2022
<SliderTrack

0 commit comments

Comments
 (0)