Fix mouse events class apply on open

Fixes #2370
This commit is contained in:
Daniel Imms
2019-08-09 09:55:31 -07:00
parent 689fb6b6ad
commit 811c24b866
+1 -1
View File
@@ -662,9 +662,9 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
this.linkifier.attachToDom(this.element, this._mouseZoneManager);
// apply mouse event classes set by escape codes before terminal was attached
this.element.classList.toggle('enable-mouse-events', this.mouseEvents);
if (this.mouseEvents) {
this._selectionService.disable();
this.element.classList.add('enable-mouse-events');
} else {
this._selectionService.enable();
}