Skip to content

Commit 761b345

Browse files
committed
1 parent 41e27b8 commit 761b345

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/vs/editor/browser/controller/textAreaInput.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export class TextAreaInput extends Disposable {
272272
return;
273273
}
274274

275-
const [newState, typeInput] = deduceComposition(e.data);
275+
const [newState, typeInput] = deduceComposition(e.data || '');
276276
this._textAreaState = newState;
277277
this._onType.fire(typeInput);
278278
this._onCompositionUpdate.fire(e);
@@ -290,7 +290,7 @@ export class TextAreaInput extends Disposable {
290290
this._textAreaState = newState;
291291
this._onType.fire(typeInput);
292292
} else {
293-
const [newState, typeInput] = deduceComposition(e.data);
293+
const [newState, typeInput] = deduceComposition(e.data || '');
294294
this._textAreaState = newState;
295295
this._onType.fire(typeInput);
296296
}

0 commit comments

Comments
 (0)