current target

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-07-13 09:19:45 +02:00
parent 6193bc2a82
commit 86580f3f20
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ export default class MImageBody extends React.Component<IProps, IState> {
if (!this.state.showImage || !this.isGif() || SettingsStore.getValue("autoplayGifsAndVideos")) {
return;
}
const imgElement = e.target as HTMLImageElement;
const imgElement = e.currentTarget;
imgElement.src = this.getThumbUrl();
};