react-component / react-component/slider

Pushable With Number Does Not Work

Open
#419 2 comments 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

Hello,

I'm using 8.6.1, and the following code sample:

<Range
                min={0}
                max={1440}
                allowCross={false}
                pushable={60}
                step={15}
              />

Does not result in pushable nodes. If I set the pushable attribute to true instead, it does work, but sets the minimum gap to the step which is 15 (rather than my intended 60).

Am I misunderstanding how the pushable property is supposed to work (based on the readme.md description) or is there a bug in this version?

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 with README.md's description of the pushable property and the Range component entry point, reproducing the provided example with step={15} and pushable={60}. Confirm the intended minimum gap for numeric pushable values; done means the behavior is clarified or the reported case has a regression test and corresponding fix.

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
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.