need to check isComposing on native event

This commit is contained in:
Bruno Windels 2019-09-25 16:11:37 +02:00
parent c8af1a6256
commit 30af9a9056

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