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

Transfer 搜索无结果时不能显示 Not Found #3996

Closed
yesmeck opened this issue Nov 24, 2016 · 2 comments
Closed

Transfer 搜索无结果时不能显示 Not Found #3996

yesmeck opened this issue Nov 24, 2016 · 2 comments
Assignees
Labels
🐛 Bug Ant Design Team had proved that this is a bug.

Comments

@yesmeck
Copy link
Member

yesmeck commented Nov 24, 2016

您做了什么?请提供尽可能详细的重现步骤。

对官网可搜索的 Transfer 例子搜索一个不存在 item

您期待的结果是:

显示 “Not Found”

实际上的结果是:

什么都没显示

可重现的在线演示

https://ant.design/components/transfer/#components-transfer-demo-search

应该是上次引入 LazyLoad 的时候改坏了,因为把搜索的动作放到 Item 里做了,所以 list 里的这个 showItems https://github.com/ant-design/ant-design/blob/master/components/transfer/list.tsx#L211 永远都是长度大于 0 的。

@afc163 afc163 self-assigned this Nov 24, 2016
@afc163 afc163 added the 🐛 Bug Ant Design Team had proved that this is a bug. label Nov 24, 2016
@afc163 afc163 closed this as completed in 9183ef0 Nov 24, 2016
@afc163
Copy link
Member

afc163 commented Nov 24, 2016

还有个奇怪的问题,第一个例子一开始显示不出来了。

@lock
Copy link

lock bot commented May 3, 2018

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.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 Bug Ant Design Team had proved that this is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants