mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
force model update after composition finishes
This commit is contained in:
parent
4779880a94
commit
42ba5f6f0a
@ -152,6 +152,9 @@ export default class BasicMessageEditor extends React.Component {
|
||||
|
||||
_onCompositionEnd = (event) => {
|
||||
this._isIMEComposing = false;
|
||||
// some browsers (chromium) don't fire an input event after ending a composition
|
||||
// so trigger a model update after the composition is done by calling the input handler
|
||||
this._onInput({inputType: "insertCompositionText"});
|
||||
}
|
||||
|
||||
_onInput = (event) => {
|
||||
|
Loading…
Reference in New Issue
Block a user