react-component / react-component/slider

onChange has a changed weird behavior

Open
#482 0 comments 5 reactions 0 assignees View on GitHub

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:

version8.6.1

When updated to 8.6.2 or 8.6.3, it behaves differently:
version8 6 2

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.