mirror of
https://github.com/vector-im/element-web.git
synced 2025-10-13 16:32:10 +02:00
need to check isComposing on native event
This commit is contained in:
parent
c8af1a6256
commit
30af9a9056
@ -194,7 +194,7 @@ export default class BasicMessageEditor extends React.Component {
|
|||||||
// checking the event.isComposing flag just in case any browser out there
|
// checking the event.isComposing flag just in case any browser out there
|
||||||
// emits events related to the composition after compositionend
|
// emits events related to the composition after compositionend
|
||||||
// has been fired
|
// has been fired
|
||||||
return !!(this._isIMEComposing || event.isComposing);
|
return !!(this._isIMEComposing || (event.nativeEvent && event.nativeEvent.isComposing));
|
||||||
}
|
}
|
||||||
|
|
||||||
_onPaste = (event) => {
|
_onPaste = (event) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user