fix(text): preserve committed WebView input
This commit is contained in:
parent
bdccf2dfe7
commit
66c8ae6fa5
|
|
@ -88,7 +88,7 @@ export function createTextCompositionHandlers({
|
|||
resetBlink()
|
||||
}
|
||||
|
||||
function onInput() {
|
||||
function onInput(event: InputEvent) {
|
||||
const el = textareaRef.value
|
||||
if (!el) return
|
||||
|
||||
|
|
@ -97,7 +97,7 @@ export function createTextCompositionHandlers({
|
|||
return
|
||||
}
|
||||
|
||||
const text = el.value
|
||||
const text = el.value || event.data || ''
|
||||
if (!text) return
|
||||
if (
|
||||
skipCommittedInput &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue