mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 07:21:22 +02:00
Remove duplicate event handler.
This commit is contained in:
parent
cafbd2904e
commit
f383298267
@ -50,6 +50,9 @@ export default class MStickerBody extends MImageBody {
|
|||||||
});
|
});
|
||||||
}, 500);
|
}, 500);
|
||||||
this.setState({hidePlaceholderTimer});
|
this.setState({hidePlaceholderTimer});
|
||||||
|
if (this.props.onWidgetLoad) {
|
||||||
|
this.props.onWidgetLoad();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_afterComponentDidMount() {
|
_afterComponentDidMount() {
|
||||||
@ -129,7 +132,6 @@ export default class MStickerBody extends MImageBody {
|
|||||||
src={contentUrl}
|
src={contentUrl}
|
||||||
ref='image'
|
ref='image'
|
||||||
alt={content.body}
|
alt={content.body}
|
||||||
onLoad={this.props.onWidgetLoad}
|
|
||||||
onLoad={this._onImageLoad}
|
onLoad={this._onImageLoad}
|
||||||
onMouseEnter={this._onMouseEnter}
|
onMouseEnter={this._onMouseEnter}
|
||||||
onMouseLeave={this._onMouseLeave}
|
onMouseLeave={this._onMouseLeave}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user