Merge pull request #5253 from akphi/patch-1
bug: properly render the terminal when open() is called again
This commit is contained in:
@@ -400,7 +400,7 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If the terminal is already opened
|
// If the terminal is already opened
|
||||||
if (this.element?.ownerDocument.defaultView && this._coreBrowserService) {
|
if (this.element?.ownerDocument.defaultView && this._coreBrowserService && this.element?.isConnected) {
|
||||||
// Adjust the window if needed
|
// Adjust the window if needed
|
||||||
if (this.element.ownerDocument.defaultView !== this._coreBrowserService.window) {
|
if (this.element.ownerDocument.defaultView !== this._coreBrowserService.window) {
|
||||||
this._coreBrowserService.window = this.element.ownerDocument.defaultView;
|
this._coreBrowserService.window = this.element.ownerDocument.defaultView;
|
||||||
|
|||||||
Reference in New Issue
Block a user