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

输入中文时会多次触发 onSearch #123

Closed
afc163 opened this issue Oct 21, 2016 · 7 comments
Closed

输入中文时会多次触发 onSearch #123

afc163 opened this issue Oct 21, 2016 · 7 comments

Comments

@afc163
Copy link
Member

afc163 commented Oct 21, 2016

image

@xujihui1985
Copy link

是输入法的时候吗? 可以用这个 onCompositionEnd onCompositionStart onCompositionUpdate

@afc163
Copy link
Member Author

afc163 commented Oct 21, 2016

Select 组件的 input 是内建的,外部不好处理。

@xujihui1985
Copy link

恩,只能在select这个组件处理这几个事件,最好所有的input组件都能处理这个事件,输入法的时候不触发onchange事件

@yesmeck
Copy link
Member

yesmeck commented Oct 29, 2016

facebook/react#3926

@xujihui1985
Copy link

这个还不太好改,试了下改rc-select, 一旦用了composition event, 就不能当做控制组件使用,而且chrome和ff下行为还不太一样

@tofdragon
Copy link

tofdragon commented Jul 3, 2017

这个问题是输入法的问题,IE中任何输入法是不会的,谷歌浏览器中输入法会存在

@Gavinchen92
Copy link

为什么选中一个Option时也会触发一次onSearch, 且value为空字符串

@yesmeck yesmeck closed this as completed Oct 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants