Use correct document when creating elements

This commit is contained in:
Daniel Imms
2023-10-16 11:09:36 -07:00
parent 4245283e05
commit c80453f602
12 changed files with 40 additions and 28 deletions
+2 -1
View File
@@ -13,7 +13,8 @@ export class CoreBrowserService implements ICoreBrowserService {
constructor(
private _textarea: HTMLTextAreaElement,
public readonly window: Window & typeof globalThis
public readonly window: Window & typeof globalThis,
public readonly mainDocument: Document
) {
this._textarea.addEventListener('focus', () => this._isFocused = true);
this._textarea.addEventListener('blur', () => this._isFocused = false);