react-component / react-component/slider
Cannot set "title" property
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 768
- Avg merge
- 11d 22h
- Merged PRs (30d)
- 5
Description
Slider component does not respect "title" property. I can set "className" property and it will be assigned to the top level <div /> element of component. However I cannot set "title" property in that way: it just does not appear in DOM tree after setting it to the Slider.
Example code:
import Slider from 'rc-slider';
...
<Slider
id="test-value"
min={0}
max={1}
title={"test title"} // this will not be set
className={"pc-range-slider test-class-name"}
value={this.props.value}
step={0.1}
onChange={(value) => this.handleAttributeChange('prop', value, true)}
/>
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Slider component entry point and inspect how className and other properties are applied to the top-level div. Reproduce the example and verify that the title property appears in the rendered DOM without changing the existing className behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100