Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
need to check isComposing on native event
Browse files Browse the repository at this point in the history
  • Loading branch information
bwindels committed Sep 25, 2019
1 parent c8af1a6 commit 30af9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/rooms/BasicMessageComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 30af9a9

Please sign in to comment.