react-component / slider

React Slider
https://slider.react-component.now.sh/
MIT License
3.02k stars 763 forks source link

stopPropagation breaks blur() events elsewhere #939

Open charlieblevins opened 11 months ago

charlieblevins commented 11 months ago

Steps to reproduce: Given: I have an input (unrelated to rc-slider), and a <Slider> element

  1. Click into the input. Expected: cursor blinks in input, focus is on input
  2. Click the slider drag handle Expected: a blur() event is called on the input Actual: no blur() event is called

I suspect this is because stopPropagation is called here. What is the reason for this call?

I will gladly open a PR to resolve this problem, but before I do it would be best for me to understand the problem that stopProgation is solving.

Thanks!