Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textarea输入汉字不触发change事件 #1173

Open
menhal opened this issue Sep 25, 2019 · 6 comments
Open

textarea输入汉字不触发change事件 #1173

menhal opened this issue Sep 25, 2019 · 6 comments
Labels

Comments

@menhal
Copy link

menhal commented Sep 25, 2019

见例子: http://jsrun.pro/7BbKp/edit

@menhal menhal added the bug label Sep 25, 2019
@menhal
Copy link
Author

menhal commented Sep 25, 2019

还有IE9下边(只有IE9, 其他都正常), 按退格键删除字符也不触发change事件

@RubyLouvre
Copy link
Owner

那没有办法 ,太古老了

@giligiliduang
Copy link

我在chrome上用这个也无法触发onChange

@RubyLouvre
Copy link
Owner

@giligiliduang chrome下可以的

@QiuZhiFeng97
Copy link

@giligiliduang chrome下可以的

我看了下代码,发现compositionEnd的时候,dispatchEvent那行代码被注释掉了,导致没分发事件。

@lizheming
Copy link
Contributor

75team@cdede41 [email protected] 修复了这个问题了,可以试一下。不过你这个 demo 里因为 value 被设置成了 this.state.value.toUpperCase() 值会存在更新的情况,所以输入法状态不会被保持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants