This commit is contained in:
Alex Dima 2020-09-18 09:23:53 +02:00
parent 41e27b8d5b
commit 761b34550d
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -272,7 +272,7 @@ export class TextAreaInput extends Disposable {
return;
}
const [newState, typeInput] = deduceComposition(e.data);
const [newState, typeInput] = deduceComposition(e.data || '');
this._textAreaState = newState;
this._onType.fire(typeInput);
this._onCompositionUpdate.fire(e);
@ -290,7 +290,7 @@ export class TextAreaInput extends Disposable {
this._textAreaState = newState;
this._onType.fire(typeInput);
} else {
const [newState, typeInput] = deduceComposition(e.data);
const [newState, typeInput] = deduceComposition(e.data || '');
this._textAreaState = newState;
this._onType.fire(typeInput);
}