react-toggle
react-toggle copied to clipboard
toggle is reverted to old state after swipe
Step to reproduce this error:
- click to check
- swipe to uncheck
- now the toggle is reverted to
checked.
I set some breakpoints and discover that this.previouslyChecked has wrong value in function handleTouchEnd