Skip to content

IE 10/11 下 combobox 模式在 mount 时会触发 onInputChange 导致 下拉弹开 #151

New issue

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

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

Already on GitHub? # to your account

Closed
eternalsky opened this issue Dec 29, 2016 · 3 comments

Comments

@eternalsky
Copy link
Contributor

eternalsky commented Dec 29, 2016

<Select combobox defaultValue="杭州">
  <Option key="杭州">杭州</Option>
</Select>

最初以为是 placeholder 的原因,但是原来没有 placeholder,只要有 value 也会触发
react 版本是 0.14.8

@afc163
Copy link
Member

afc163 commented Dec 29, 2016

试试 react@15

facebook/react#5746

@eternalsky
Copy link
Contributor Author

因为业务上还需要支持 IE8 的原因,目前还不具备条件切换到 react@15,请问是否还有其他解决方式?

@yesmeck
Copy link
Member

yesmeck commented Feb 27, 2017

试试用 getInputElement 自定义一个处理了 change 事件的 input 传给 Select?

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

No branches or pull requests

4 participants