Skip to content

Commit

Permalink
fixed slider initial position
Browse files Browse the repository at this point in the history
  • Loading branch information
Andcool-Systems committed Oct 3, 2024
1 parent 6aeee40 commit 2661a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/modules/components/slider.module.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Slider = ({ initial, range, onChange }: { initial: number, range: number,

useEffect(() => {
setPosition(calcPosition(range, 0, initial).position);
}, [])
}, [initial, range])

return (
<>
Expand Down

0 comments on commit 2661a77

Please sign in to comment.