react-component / slider

React Slider
https://slider.react-component.now.sh/
MIT License
3.02k stars 764 forks source link

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

Open anuragb-tal opened 6 years ago

anuragb-tal commented 6 years ago

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.

badyakarprabin commented 3 years ago

@anuragb-tal Did you find anything on this?

Alwayslazydog commented 4 months ago

when i use Range, trackStyle are still not working

yoyo837 commented 4 months ago

Could you please provide a reproduction and submit the issue to the antd repo?