Image: don't show image-viewer when preview is false (#18967)

This commit is contained in:
inooNgt 2020-04-10 17:19:07 +08:00 committed by GitHub
parent 624c1e90ff
commit bc7dcc6281
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -217,6 +217,10 @@
}
},
clickHandler() {
// don't show viewer when preview is false
if (!this.preview) {
return;
}
// prevent body scroll
prevOverflow = document.body.style.overflow;
document.body.style.overflow = 'hidden';