react-component / react-component/slider
Manipulating range sliders with arrow keys does not respect `allowCross` prop
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 768
- Avg merge
- 11d 22h
- Merged PRs (30d)
- 5
Description
Example:
<Slider
allowCross={false}
range
vertical
reverse
value={...}
min={1}
max={10}
dots
handleRender={...}
onChange={...}
/>
If you click on a slider handle and use the arrow keys to go up and down, you can cross the other slider even though allowCross is set to false.
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 the provided Slider example, then trace the keyboard arrow-key handling for range handles and the existing allowCross constraint. Confirm the fix by checking that moving either handle with arrow keys cannot cross the other handle when allowCross is false, including the vertical and reverse configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- accessibility, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100