Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Slider] Fix step rounding issue #463

Merged
merged 1 commit into from Feb 19, 2021
Merged

Conversation

benoitgrelard
Copy link
Collaborator

@benoitgrelard benoitgrelard commented Feb 18, 2021

Closes #462

@jjenzz this is what you get if you pass step={0} and try and move it:

  • it won't move
  • the value becomes NaN
    image

I think that's fine personally. It's pretty obvious it shouldn't work if you say that it goes by increments of 0.

@benoitgrelard benoitgrelard merged commit b47d88f into main Feb 19, 2021
@benoitgrelard benoitgrelard deleted the slider-fix-step-rounding branch February 19, 2021 08:35
benoitgrelard added a commit that referenced this pull request Mar 3, 2021
# New features

Breaking changes are indicated with a 🔥 icon.

- Add support for SSR
- [Accordion] Support multiple values (#527) 🔥
- [Tabs] Add RTL support (`dir` prop) (#497)
- Remove `selector` prop and `data-radix-*` atributes 🔥

# Fixes

- [Slider] Fix step rounding issue (#463)
- [Presence] Improve `Presence` perf (#465)
- Fixed potential issue with overriding attributes in certain primitives

# Maintenance

- Improved internal context handling
- Better package/dependency split
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slider doesn't support step < 1
2 participants