未验证 提交 83f000df 编写于 作者: P Peng Lyu 提交者: GitHub

Merge pull request #106873 from belcherj/patch-1

Fix composition logic for Firefox
......@@ -297,7 +297,7 @@ export class TextAreaInput extends Disposable {
// Due to isEdgeOrIE (where the textarea was not cleared initially) and isChrome (the textarea is not updated correctly when composition ends)
// we cannot assume the text at the end consists only of the composited text
if (browser.isEdge || browser.isChrome) {
if (browser.isEdge || browser.isChrome|| browser.isFirefox) {
this._textAreaState = TextAreaState.readFromTextArea(this._textArea);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册