CompositionHelper.prototype._finalizeComposition = function (waitForPropogation) {
var _this = this;
this._compositionView.classList.remove('active');
this._isComposing = false;
this._clearTextareaPosition();
if (!waitForPropogation) {
this._isSendingComposition = false;
var input = this._textarea.value.substring(this._compositionPosition.start, this._compositionPosition.end);
this._terminal.handler(input);
this._compositionView.textContent=''
this._textarea.value=''
}
else {
var currentCompositionPosition_1 = {
start: this._compositionPosition.start,
end: this._compositionPosition.end
};
this._isSendingComposition = true;
setTimeout(function () {
if (_this._isSendingComposition) {
_this._isSendingComposition = false;
var input = void 0;
if (_this._isComposing) {
input = _this._textarea.value.substring(currentCompositionPosition_1.start, currentCompositionPosition_1.end);
}
else {
input = _this._textarea.value.substring(currentCompositionPosition_1.start);
}
_this._terminal.handler(input);
}
this._compositionView.textContent=''
this._textarea.value=''
}, 0);
}
};
I fixed bug input on mobile by add
this._compositionView.textContent='' this._textarea.value=''in