davidchin/react-input-range

Cannot move slider - Unable to preventDefault inside passive event listener invocation.

kristijorgji opened this issue · 0 comments

I cannot move the slider at all after a simple usage, get the below error in console
Unable to preventDefault inside passive event listener invocation.

const [zoomSlider, setZoomSlider] = useState(0);

                    return    <InputRange
                                maxValue={100}
                                minValue={0}
                                value={zoomSlider}
                                onChange={(value) => setZoomSlider({ value } as unknown as number)}
                            />