From b271957b4cbee7a489acccbdc84f19d3d6414412 Mon Sep 17 00:00:00 2001 From: ValD Date: Thu, 13 Dec 2018 00:11:01 +0530 Subject: [PATCH] added not preload check so hidden toggles asap --- src/components/attachment/attachment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 574439e0..16114c30 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -47,7 +47,7 @@ const Attachment = { } }, toggleHidden () { - if (this.img) { + if (this.img && !this.preloadImage) { if (this.img.onload) { this.img.onload() } else {