Skip to content

Commit 5b4b926

Browse files
committed
avoid updating input value during IME composition (fix #3894)
1 parent be6e050 commit 5b4b926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/platforms/web/runtime/modules/dom-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function updateDOMProps (oldVnode: VNodeWithData, vnode: VNodeWithData) {
3434
elm._value = cur
3535
// avoid resetting cursor position when value is the same
3636
const strCur = cur == null ? '' : String(cur)
37-
if (elm.value !== strCur) {
37+
if (elm.value !== strCur && !elm.composing) {
3838
elm.value = strCur
3939
}
4040
} else {

0 commit comments

Comments
 (0)