react-component / react-component/slider
Different step value for Min and Max
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 768
- Avg merge
- 11d 22h
- Merged PRs (30d)
- 5
Description
Hello,
I am using this plugin to create log sliders so we can use large number but have a nice scale from instance 0.1, 0.2, 0.3, 0.4, 0.5, 1, 2, 3, 4, 5, 10, 20, 30 etc
I have it working perfectly for single sliders, however have hit a snag with the range sliders. OnChange of the value I trigger a function that works out the correct step, sets state then updates the slider, but with range sliders the value is an array so I don't actually know what one has changed.
I don't suppose there is a way to give the step parameter an array with step values for min handle and max handle?
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
The issue does not name files or tests. Review the range-slider API and current step handling first, then inspect existing tests for range values and handle changes. Done should be a documented, tested way to use different step values for the minimum and maximum handles.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100