Skip to content

Commit 6c72ec2

Browse files
authored
Merge pull request #752 from leibowitz/fix-prevent-default
fix: check if event is cancelable before calling preventDefault
2 parents 92b5d48 + fa752bb commit 6c72ec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SortableContainer/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export default function sortableContainer(
449449
const {onSortMove} = this.props;
450450

451451
// Prevent scrolling on mobile
452-
if (typeof event.preventDefault === 'function') {
452+
if (typeof event.preventDefault === 'function' && event.cancelable) {
453453
event.preventDefault();
454454
}
455455

0 commit comments

Comments
 (0)