Commit bc7dcc62 authored by inooNgt's avatar inooNgt Committed by GitHub

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

parent 624c1e90
......@@ -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';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment