We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d1ebb5 commit fbd198fCopy full SHA for fbd198f
packages/runtime-dom/src/directives/vModel.ts
@@ -79,6 +79,8 @@ export const vModelText: ModelDirective<
79
},
80
beforeUpdate(el, { value, modifiers: { trim, number } }, vnode) {
81
el._assign = getModelAssigner(vnode)
82
+ // avoid clearing unresolved text. #2302
83
+ if ((el as any).composing) return
84
if (document.activeElement === el) {
85
if (trim && el.value.trim() === value) {
86
return
0 commit comments