diff --git a/lib/components/term.js b/lib/components/term.js index 252811ac..f281bd8e 100644 --- a/lib/components/term.js +++ b/lib/components/term.js @@ -111,7 +111,7 @@ export default class Term extends React.PureComponent { // The parent element for the terminal is attached and removed manually so // that we can preserve it across mounts and unmounts of the component - this.termRef = props.term ? props.term._core._parent : document.createElement('div'); + this.termRef = props.term ? props.term.element.parentElement : document.createElement('div'); this.termRef.className = 'term_fit term_term'; this.termWrapperRef.appendChild(this.termRef);