mirror of
https://github.com/vector-im/element-web.git
synced 2024-12-01 15:11:11 +08:00
Fix removing event listeners
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
bebbb3b90e
commit
365d252d3f
@ -572,8 +572,8 @@ export default class RoomView extends React.Component<IProps, IState> {
|
||||
const roomView = this.roomView.current;
|
||||
roomView.removeEventListener('drop', this.onDrop);
|
||||
roomView.removeEventListener('dragover', this.onDragOver);
|
||||
roomView.removeEventListener('dragleave', this.onDragLeaveOrEnd);
|
||||
roomView.removeEventListener('dragend', this.onDragLeaveOrEnd);
|
||||
roomView.removeEventListener('dragenter', this.onDragEnter);
|
||||
roomView.removeEventListener('dragleave', this.onDragLeave);
|
||||
}
|
||||
dis.unregister(this.dispatcherRef);
|
||||
if (this.context) {
|
||||
|
Loading…
Reference in New Issue
Block a user