react-component / react-component/slider

div with class='rc-slider-track' not formed using <Range>

Open
#426 3 comments 1 reaction 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

I am using the component in the following manner
<Range dots max={(this.props.items.length-1)*10} step={10} onChange={this.onRangeChange} defaultValue={[this.props.selected*10]} />

The following div which shows how much of the range slider has been traversed should also have been present in the html
<div class="rc-slider-track" style="left: 0%; width: 0%;"> </div>

The examples clearly show this div to be present ."left" attribute of the style is dynamically updated based upon how you would traverse in the slider.I need this as I would have to style the portion of the slider already traversed.
I did try add trackStyle={{ backgroundColor: 'green'}} to style the track traversed but since the above mentioned div doesn't exist ,there seems to be no effect.

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 reported usage and compare its generated HTML with the slider examples. Inspect the Range component's track rendering and the effect of trackStyle, then confirm that the traversed track element is rendered and can receive the requested styling.

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
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.