[bugfix] PullRefresh: preventDefault warning (#1819)

This commit is contained in:
neverland 2018-09-17 17:39:24 +08:00 committed by GitHub
parent bde9f5adb2
commit 46e025e56d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ export default create({
if (this.ceiling && this.deltaY >= 0) {
if (this.direction === 'vertical') {
this.getStatus(this.ease(this.deltaY));
event.preventDefault();
event.cancelable && event.preventDefault();
}
}
},