react-component / react-component/slider

Incorrect value displaying if min changes to value which is more than max after first render

Open
#861 1 comment 0 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

Steps to reproduce:

  1. Set up min to 100 max to 500, value to 600
  2. Change min to 600
    Expected: handle invisible
    Current: handle positioned on very big distance.

Codesandbox to repoduce: https://codesandbox.io/s/summer-butterfly-2djoxi?file=/src/App.js

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

Start with the CodeSandbox reproduction linked in the issue and trace how the slider handles updates when min becomes greater than max after the first render. Verify that the handle is hidden rather than positioned far outside the slider when the reported values are used.

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
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.