markusenglund / react-switch

A draggable toggle-switch component for React. Check out the demo at:
https://react-switch.netlify.com/
MIT License
1.33k stars 100 forks source link

Value doesn't change if clicked on handle if Chrome not in focus #21

Closed saitonakamura closed 5 years ago

saitonakamura commented 6 years ago

Repro:

  1. Open official demo in a Chrome (I have version 70, but i think i've seen this on previous versions)
  2. Open another application (i have Windows 10 though) and focus it
  3. Click on handle -> doesn't trigger the change, just the focus

If you click not on the handle itself, it's working fine

8 Can be related

Last Edge and Firefox also working fine

markusenglund commented 5 years ago

Thanks for the bug report. The issue has been fixed in #26 which will be released in 4.0.0 (hopefully due next weekend).

markusenglund commented 5 years ago

Now it's released in 4.0.0!

saitonakamura commented 5 years ago

That's really cool, thank you, I'll give it a try!