mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 01:05:53 +03:00
Fix removing event listeners
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
bebbb3b90e
commit
365d252d3f
1 changed files with 2 additions and 2 deletions
|
@ -572,8 +572,8 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||||
const roomView = this.roomView.current;
|
const roomView = this.roomView.current;
|
||||||
roomView.removeEventListener('drop', this.onDrop);
|
roomView.removeEventListener('drop', this.onDrop);
|
||||||
roomView.removeEventListener('dragover', this.onDragOver);
|
roomView.removeEventListener('dragover', this.onDragOver);
|
||||||
roomView.removeEventListener('dragleave', this.onDragLeaveOrEnd);
|
roomView.removeEventListener('dragenter', this.onDragEnter);
|
||||||
roomView.removeEventListener('dragend', this.onDragLeaveOrEnd);
|
roomView.removeEventListener('dragleave', this.onDragLeave);
|
||||||
}
|
}
|
||||||
dis.unregister(this.dispatcherRef);
|
dis.unregister(this.dispatcherRef);
|
||||||
if (this.context) {
|
if (this.context) {
|
||||||
|
|
Loading…
Reference in a new issue