slider icon indicating copy to clipboard operation
slider copied to clipboard

Range slider - unable to move second handle after the first handle withou unfocusing

Open zerbik opened this issue 7 years ago • 9 comments

Hello,

I have found that when using range slider, handles remain in focused state after moving them. The problem is that i can not move second handle right after moving the first handle. I have to unfocus, either by clicking away or double click on the second handle to move it.

Any fix for this? Thanks.

slider-handle-bug

zerbik avatar Dec 11 '18 12:12 zerbik

Yep, also faced this, even at the demo: http://react-component.github.io/slider/examples/handle.html I can't move last range slider's second handle by the first try after finished dragging first handle.

muerwre avatar Dec 13 '18 05:12 muerwre

Seems to be the problem of the latest release. 8.5.0 doesn't have it.

muerwre avatar Dec 13 '18 05:12 muerwre

Facing the same issue, after downgrading to v8.5.0 the error is gone.

Edit: v8.6.3 also don't have this "feature". Only bugged in the latest version.

Edit2: Probably this change killed it: https://github.com/react-component/slider/commit/faab29dcac11cb2bea5bb0c81f777f1271036bb8

endze1t avatar Dec 13 '18 12:12 endze1t

Anyone to fix this please? Thanks

ejdzipi avatar Dec 21 '18 22:12 ejdzipi

Just roll back to 8.6.3

muerwre avatar Dec 22 '18 01:12 muerwre

If you disable the ability to work from the keyboard (pass tabindex as null) then it will work. I added pull request https://github.com/react-component/slider/pull/512 example for 3 points:

<Range
  tabIndex={[null, null, null]}
/>

vprokashev avatar Feb 22 '19 12:02 vprokashev

<Range
  tabIndex={[null, null, null]}
/>

It doesn't work for me. I moved to 8.6.3 version and it's work.

  • Browser: Chrome Version 72.0.3626.119 (Official Build) (64-bit)

pavelkeyzik avatar Feb 26 '19 06:02 pavelkeyzik

I also faced the same issue, I fixed it adding below lines in after change function.

afterChange(){ document.querySelector(.rc-slider-handle-1).blur(); document.querySelector(.rc-slider-handle-2).blur(); } Hope it will help.

himanshuagrawal5947 avatar Jan 20 '20 07:01 himanshuagrawal5947

Anyone to fix this please? Thanks

afterChange(){ document.querySelector(.rc-slider-handle-1).blur(); document.querySelector(.rc-slider-handle-2).blur(); }

himanshuagrawal5947 avatar Jan 21 '20 06:01 himanshuagrawal5947