Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
mj12albert committed Feb 24, 2025
1 parent 0599312 commit 7da0a5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/slider/root/useSliderRoot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export function useSliderRoot(parameters: useSliderRoot.Parameters): useSliderRo
return;
}

if (min === max) {
if (min >= max) {
warn('Slider `max` must be greater than `min`');
}

Expand Down

0 comments on commit 7da0a5b

Please sign in to comment.