From 30af9a9056c1be479d0048c8af61b874ee9febb6 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 25 Sep 2019 16:11:37 +0200 Subject: [PATCH] need to check isComposing on native event --- src/components/views/rooms/BasicMessageComposer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/rooms/BasicMessageComposer.js b/src/components/views/rooms/BasicMessageComposer.js index 0601b9b84f..c229f64d1a 100644 --- a/src/components/views/rooms/BasicMessageComposer.js +++ b/src/components/views/rooms/BasicMessageComposer.js @@ -194,7 +194,7 @@ export default class BasicMessageEditor extends React.Component { // checking the event.isComposing flag just in case any browser out there // emits events related to the composition after compositionend // has been fired - return !!(this._isIMEComposing || event.isComposing); + return !!(this._isIMEComposing || (event.nativeEvent && event.nativeEvent.isComposing)); } _onPaste = (event) => {