From 6803fce523271e61fcc810ad609f9a07caedca84 Mon Sep 17 00:00:00 2001 From: mohemohe Date: Mon, 16 Jan 2023 01:07:03 +0900 Subject: [PATCH] =?UTF-8?q?=E7=94=BB=E5=83=8F=E3=81=AE=E5=A4=96=E3=82=92?= =?UTF-8?q?=E3=82=AF=E3=83=AA=E3=83=83=E3=82=AF=E3=81=97=E3=81=9F=E5=A0=B4?= =?UTF-8?q?=E5=90=88=E3=81=AE=E6=8C=99=E5=8B=95=E3=82=92=E6=9C=AC=E5=AE=B6?= =?UTF-8?q?=E3=81=AB=E5=90=88=E3=82=8F=E3=81=9B=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mastodon/features/ui/components/image_loader.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/javascript/mastodon/features/ui/components/image_loader.js b/app/javascript/mastodon/features/ui/components/image_loader.js index ff79be00a3685..cfb4beab6b1fb 100644 --- a/app/javascript/mastodon/features/ui/components/image_loader.js +++ b/app/javascript/mastodon/features/ui/components/image_loader.js @@ -51,9 +51,10 @@ export default class ImageLoader extends PureComponent { this.removers = []; } - onClickContainer = onClick => e => { + onClickImage = e => { e.stopPropagation(); - onClick(); + e.preventDefault(); + return false; } onLoadImage = e => { @@ -110,7 +111,7 @@ export default class ImageLoader extends PureComponent { }); return ( -
+
{loading && ( <>
@@ -142,7 +143,7 @@ export default class ImageLoader extends PureComponent { transformOrigin: 'left top', }} > - {alt} + {alt} ); }}