diff --git a/lib/components/term.js b/lib/components/term.js index 583c5377..f1ab8ee4 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -217,7 +217,7 @@ export default class Term extends PureComponent { // instead of invoking `destroy`, since it will make the // term insta un-attachable in the future (which we need // to do in case of splitting, see `componentDidMount` - this.term._events = {}; + ['title', 'focus', 'data', 'resize'].forEach(type => this.term.removeAllListeners(type)); window.removeEventListener('resize', this.onWindowResize, { passive: true