Skip to content

Typing with Chinese IME in a v-model bound input with a keydown listener  #3894

@Leopoldthecoder

Description

@Leopoldthecoder

This issue concerns Chinese IME, which I think only affects Chinese users, so the following will be in Chinese.

Vue.js version

2.0.1

Reproduction Link

https://jsfiddle.net/o1ws93ca/

Steps to reproduce

使用 macOS 自带的中文输入法在输入框进行输入

What is Expected?

每按下一个键,输入框长度变长,文字能够正常输入

What is actually happening?

每按下一个键,输入框长度变长,但是文字无法正常输入

补充:

  1. 代码的第 21 至 23 行,删去任意一行后,问题就不存在了
  2. Vue 1.0.26 版本没有这个问题:https://jsfiddle.net/uk5jfrmv/
  3. 在 macOS 上,搜狗输入法和百度输入法没有这个问题;windows 没有测试

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions