[Slider] onValueCommit not being called properly
See original GitHub issueBug report
Sometimes the onValueCommit prop is not being called properly when moving the thumb.
Current Behavior
When moving the thumb sometimes the onValueCommit prop is not called.
Expected behavior
To always call the onValueCommit prop when the user stops sliding
Reproducible example
I’m using the same example from the documentation.
Your environment
| Software | Name(s) | Version |
|---|---|---|
| Radix Package(s) | slider | 1.1.0 |
| React | n/a | 18.2 |
| Browser | chrome | 107.0.5304.87 (Official Build) (arm64) |
| Assistive tech | ||
| Node | n/a | |
| npm/yarn | ||
| Operating System | macOS | Version 13.0 |
Issue Analytics
- State:
- Created 10 months ago
- Comments:12
Top Results From Across the Web
Slider OnValueChanged not being called in 2019.3.0f5
Using Unity 2019.3.0f5. Slider UI components are not calling OnValueChanged from the inspector (both dynamic and static) but they are when I ...
Read more >Slider - Radix UI
Slider. An input where the user selects a value from within a given range. ... for each thumb when used within a form...
Read more >Slider control is not working properly - Stack Overflow
I want to change textblock value depending on the slider value each time I change it. But it shouldn't ...
Read more >Slider Not Working !!! Trick to Handle ANY Slider - YouTube
If a slider is not working or you don't know how to properly initialize a slider then this video is for you. Almost...
Read more >refactor: Pure FC with multiple update - react-component/slider
click mark to update range value; handleRender; Fix handle with count not correct ... primitives [Slider] onValueCommit not being called properly 12 open...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ok, well that shows it has nothing to do with the iframe, thanks. However, I’m still struggling to reproduce it or understand how you are doing it 😀
One thing to note is that
onValueCommitwill only trigger is the value has actually changed, but from what I can see (although tricky with just watching a video) it looks like you are changing it.Could you try logging the value you receive in
onValueCommitand also logging the value inonValueChangeand reproduce?This is definitely odd, but I was able to reproduce after a couple of tries.
https://user-images.githubusercontent.com/6929565/200378479-11b5671d-1808-4a3e-8337-ca24295cc1b6.mp4