react-component / react-component/slider
Adjust Slider css to handle max limit
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 768
- Avg merge
- 11d 22h
- Merged PRs (30d)
- 5
Description
Hi! Right now I'm setting an intervall of something like [0,100]. I've got a handle that is dynamically adjustable to a value, say 50.
However, if the slider value exceeds the max limit set by the handle, not slider, the progress bar will still adjust the width property according to the slider. Is there any way to limit the rc-slider-track to read and limit the progress styling to the max value of the handle in addition to the slider?
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
Start by reproducing the issue with a slider interval of [0,100] and a dynamically adjustable handle capped at 50. Trace how the slider track calculates its progress width, then verify that the rendered progress does not exceed the handle's maximum value as well as the slider's maximum.
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
- 35/100