-
-
Notifications
You must be signed in to change notification settings - Fork 49.3k
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
Labels
🐛 Bug
Ant Design Team had proved that this is a bug.
Comments
还有个奇怪的问题,第一个例子一开始显示不出来了。 |
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
您做了什么?请提供尽可能详细的重现步骤。
对官网可搜索的 Transfer 例子搜索一个不存在 item
您期待的结果是:
显示 “Not Found”
实际上的结果是:
什么都没显示
可重现的在线演示
https://ant.design/components/transfer/#components-transfer-demo-search
应该是上次引入 LazyLoad 的时候改坏了,因为把搜索的动作放到 Item 里做了,所以 list 里的这个
showItems
https:/ant-design/ant-design/blob/master/components/transfer/list.tsx#L211 永远都是长度大于 0 的。The text was updated successfully, but these errors were encountered: