-
-
Notifications
You must be signed in to change notification settings - Fork 50k
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
关于treeSelect组件的bug #13245
Comments
Hello @Liswi. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro. Issues labeled by 你好 @Liswi, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击此处创建。7 天内未跟进的 issue 将会被自动关闭。 |
I also encounter the same bug: if I try to delete all data of the search input, the tree select will auto request the api of all the children node by recursion , so many many request, the browser crash !!!!! the how to resolve it???? |
@TristanDongMaster , could you help to provide an online reproduce? |
we just want to achieve the search feature, but I found the bug, so I give up the search requirement....at latest, I have to wait the bug to resolve.... |
@zombieJ I read the source code of rc-tree-select and find that this problem is caused by expanding all nodes when tree is in filter mode.Please read my PR of rc-tree-selec for more details. |
Version
3.10.8
Environment
mac/windows/linux
Reproduction link
https://ant.design/components/tree-select-cn/
Steps to reproduce
1.treeNodeFilterProp属性置为 true, loadData开启懒加载数据
2. 在输入框中搜索某个节点的值(必须是能匹配到的)
3.回删搜索关键词
What is expected?
期望搜索时展示过滤到的节点,回删显示原完整节点,节点闭合状态不变
What is actually happening?
1.实际中,匹配到节点之后,组件会自动展开匹配到的节点,这会导致请求子节点加载数据(bug1 ??)
2.回删关键词到空的时候,会显示原有的所有父节点,并且所有父节点都会去自动展开,导致所有节点一起发送加载数据请求,网页阻塞,奔溃
这个bug在我更新到 3.6.X 时出现,一直到 3.10.X还存在。3.4.2好像没有这个问题
The text was updated successfully, but these errors were encountered: