react-component / react-component/slider
onChange has a changed weird behavior
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 768
- Avg merge
- 11d 22h
- Merged PRs (30d)
- 5
Description
Since v8.6.2 (also tried 8.6.3, it's same behavior) onChange is called in a weird manner, it's a terrible user experience. I couldn't find any change log or any docs which tells how to get the old behavior, basically when I click on end of slider, it calls onChange with value let's say of 50, then while it's sliding, it calls with value of middle point, say 38? provided it started from 0, either onChange shouldn't be called with 50 at first, rather 38 then make sure you go for 50 because that's where user has clicked.
Here's how it behaved back in 8.6.1:

When updated to 8.6.2 or 8.6.3, it behaves differently:

Which is terrible, I think we should treat this like a bug and fix it else I'd have no option but to pin my version to 8.6.1.
Or if I completely missed something and there's a changelog or there's a way to get this old behavior back, then please let me know.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the slider interaction described in versions 8.6.1, 8.6.2, and 8.6.3, recording the order of onChange values when clicking the slider end and dragging. Compare the version behavior and identify the change responsible; done means the current behavior matches the intended 8.6.1 sequence or the project documents an explicit alternative.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100