react-component / react-component/slider
Unsmooth tooltip slider when combined with redux form
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 768
- Avg merge
- 11d 22h
- Merged PRs (30d)
- 5
Description
the implementation of slider WITH tooltip in redux form result in "unsmooth" slider. You can move the slider only by discrete step.
There is no problem with the vanilla slider. Everything works "smoothly" in this case.
**With tooltip: ** Unsmooth
const SliderWithTooltip = createSliderWithTooltip(Slider)
return (
<SliderWithTooltip
value={+input.value}
onChange={input.onChange}
min={0}
max={100}
/>
)
}
const SliderForm = ({name }) => {
return (
<div>
<Field
name='slider'
component={renderSlider}
/>
</div>
)
}```
*Without tooltip:* _smooth_
```const renderSlider = ({ input }) => {
return (
<Slider
value={+input.value}
onChange={input.onChange}
min={0}
max={100}
/>
)
}
const SliderForm = ({ name }) => {
return (
<div>
<Field
name='slider'
component={renderSlider}
/>
</div>
)
}```
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 by reproducing the provided Redux Form integration and compare the tooltip-wrapped Slider with the vanilla Slider. Investigate why the tooltip version moves only in discrete steps; done means the tooltip slider moves smoothly while preserving the shown form integration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, redux
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100