From 42ba5f6f0a39562ac242198f952f457159cd2df1 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 30 Aug 2019 11:25:17 +0200 Subject: [PATCH] force model update after composition finishes --- src/components/views/rooms/BasicMessageComposer.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/views/rooms/BasicMessageComposer.js b/src/components/views/rooms/BasicMessageComposer.js index d55e9acc86..770e4766f3 100644 --- a/src/components/views/rooms/BasicMessageComposer.js +++ b/src/components/views/rooms/BasicMessageComposer.js @@ -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) => {