diff --git a/bigbluebutton-html5/imports/ui/components/actions-bar/create-breakout-room/component.jsx b/bigbluebutton-html5/imports/ui/components/actions-bar/create-breakout-room/component.jsx index 737ab8873b56eb7f671baa7dd31f717c4d7c9186..359a7a790aab66c01d74d76e8929174c7a9c59d2 100755 --- a/bigbluebutton-html5/imports/ui/components/actions-bar/create-breakout-room/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/actions-bar/create-breakout-room/component.jsx @@ -1,6 +1,5 @@ import React, { PureComponent } from 'react'; import PropTypes from 'prop-types'; -import { findDOMNode } from 'react-dom'; import { defineMessages, injectIntl } from 'react-intl'; import _ from 'lodash'; import cx from 'classnames'; @@ -224,6 +223,15 @@ class BreakoutRoom extends PureComponent { } } + componentWillUnmount() { + if (this.listOfUsers) { + for(let i = 0; i < this.listOfUsers.children.length; i++) { + const roomList = this.listOfUsers.children[i].getElementsByTagName('div')[0]; + roomList.removeEventListener('keydown', this.handleMoveEvent, true); + } + } + } + componentDidUpdate(prevProps, prevstate) { if (this.listOfUsers) { for(let i = 0; i < this.listOfUsers.children.length; i++) {