react-component / react-component/slider

Manipulating range sliders with arrow keys does not respect `allowCross` prop

Open
#882 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

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

  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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.