-
-
Notifications
You must be signed in to change notification settings - Fork 49.6k
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
官网DEMO的SELECT自动补全功能存在不显示下拉列表的BUG #3958
Comments
是有问题,请求已经发出并且收到响应,但是结果列表没有展示出来。 |
@benjycui 应该是组件的bug吧?因为我在线上的项目里也出现了这个问题 |
@RaoHai 来看下,貌似和之前的改动 react-component/select#134 和 #3778 有关。 1.x 上的例子是好的:http://1x.ant.design/components/select/#components-select-demo-search-box |
https://github.com/react-component/select/blob/master/src/Select.jsx#L702 此处。 第一次 onChange 的时候,触发 adjustOpenState ,此时 children 仍为空,open 就会被设成 false 了。 异步获取到数据的时候,再 setState, 触发 adjustOpenState , 此时因为 open 为 false,不会进入判断 children 的逻辑。。 adjustOpenState 的初衷是修复这个问题, #2975 。想想是不是有更好的方法…… |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
之前几个版本,在这里输入关键字,会自动跳出下拉列表提示。但是今天上去看2.4.3版本,输入文字以后经常会不显示下拉列表,需要按一下向下/向上箭头、空格或者多输入几个字符才会跳出下拉列表。
The text was updated successfully, but these errors were encountered: