Skip to content

Commit

Permalink
Merge pull request #1 from Maks113/fix-cancelling-a-non-cancelable-event
Browse files Browse the repository at this point in the history
🐛 [bug] Removed cancellation of non-cancellable event (touchmove)
  • Loading branch information
Maks113 authored Nov 26, 2020
2 parents 279fb4b + 2c26b80 commit 11ba1a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/DatePickerItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ class DatePickerItem extends Component<void, Props, State> {
* @return {undefined}
*/
handleContentTouch(event) {
event.preventDefault();
if (event.cancelable) {
event.preventDefault();
}
if (this.animating) return;
if (event.type === 'touchstart') {
this.handleStart(event);
Expand Down

0 comments on commit 11ba1a0

Please sign in to comment.