Merge pull request #3239 from hantatsang/fix/2642-terminal-open-check-shadow-dom

Terminal.open: support WebComponent when checking DOM Node
This commit is contained in:
Daniel Imms
2021-02-01 02:37:38 -08:00
committed by GitHub
+1 -1
View File
@@ -386,7 +386,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
throw new Error('Terminal requires a parent element.');
}
if (!document.body.contains(parent)) {
if (!parent.isConnected) {
this._logService.debug('Terminal.open was called on an element that was not attached to the DOM');
}