mirror of https://github.com/vector-im/riot-web
Use current target
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
bdbd03c4ff
commit
fa4977c4da
|
@ -144,7 +144,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.getContentUrl();
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue