Skip to content

Commit 6f62e6c

Browse files
committed
typescript fix
1 parent 9217fb4 commit 6f62e6c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/terminal.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,9 @@ export class Terminal implements ITerminalCore {
371371
parent.appendChild(this.textarea);
372372

373373
// iOS requires explicit focus from touch event to show keyboard
374-
this.textarea.addEventListener('touchstart', () => {
375-
this.textarea.focus();
374+
const textarea = this.textarea;
375+
textarea.addEventListener('touchstart', () => {
376+
textarea.focus();
376377
});
377378

378379
// Create renderer

0 commit comments

Comments
 (0)