react-component / react-component/slider

Can't disable some inputs in range slider.

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

Requirement -

I'm using rc-slider which displays the value from 1 to 100 and I used the step as 1. Here the min and max set as 1 and 100. Now, I want to disable some range between 1 to 100. For example, If I want to disallow the input selection before 4 and after 40, the user can only select the range between 4 to 40 but we have to display all values from 1 to 100.

I tried to implement this behaviour but when I set min to 4 and max to 40 then the slider starts from 4 instead of 0?

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

No file or test is named. Start by checking the slider's documented min/max and range-selection behavior; done means values 1–100 remain displayed while selections outside 4–40 are disallowed.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.