Merge pull request #3364 from matrix-org/bwindels/cider-ime-partii

New composer: force model update after IME composition finishes
pull/21833/head
Bruno Windels 2019-08-30 16:03:14 +00:00 committed by GitHub
commit 3be32022f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -152,6 +152,9 @@ export default class BasicMessageEditor extends React.Component {
_onCompositionEnd = (event) => {
this._isIMEComposing = false;
// some browsers (chromium) don't fire an input event after ending a composition
// so trigger a model update after the composition is done by calling the input handler
this._onInput({inputType: "insertCompositionText"});
}
_onInput = (event) => {