slider
slider copied to clipboard
React 17 support
React has changed the event system in v17. This breaks rc-slider. The slider stays stuck to the cursor after releasing the click.
Thought I'd give you a heads up, thank you for the library!
Warning about deprecated findDOMNode usage. See react documentation.
https://github.com/ant-design/ant-design/issues/26136
For me the Slider stop working when I add the tooltip code like so:
const SliderWithTooltip = createSliderWithTooltip(Slider)
function percentFormatter(v: number) {
return `${v} %`
}
const MyComponent = () => {
return <SliderWithTooltip tipFormatter={percentFormatter} min={0} max={100} />
}
It freezes the entire screen once I click the slider. If I don't add the tooltip then it works.
FindDOMNode error is still present in 9.7.5. Is there a PR addressing this?