mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 01:01:45 +00:00
Fix Hangul typing does not work properly
compositionstart event may fire in the meantime because compositionend event is being processed asynchronously. Signed-off-by: JungEon Kim <me@jungeon.kim>
This commit is contained in:
@@ -203,9 +203,9 @@ export default class BasicMessageEditor extends React.Component {
|
|||||||
if (isSafari) {
|
if (isSafari) {
|
||||||
this._onInput({inputType: "insertCompositionText"});
|
this._onInput({inputType: "insertCompositionText"});
|
||||||
} else {
|
} else {
|
||||||
setTimeout(() => {
|
Promise.resolve().then(() => {
|
||||||
this._onInput({inputType: "insertCompositionText"});
|
this._onInput({inputType: "insertCompositionText"});
|
||||||
}, 0);
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user