need to check isComposing on native event

pull/21833/head
Bruno Windels 2019-09-25 16:11:37 +02:00
parent c8af1a6256
commit 30af9a9056
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {