From 734701c5e783eb581b70538bb5b2550d8da2f5e6 Mon Sep 17 00:00:00 2001 From: Labhansh Agrawal Date: Tue, 11 Feb 2020 21:11:07 +0530 Subject: [PATCH] Fix split view issue --- lib/components/term.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);