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

关于treeSelect组件的bug #13245

Closed
1 task
Liswi opened this issue Nov 22, 2018 · 6 comments
Closed
1 task

关于treeSelect组件的bug #13245

Liswi opened this issue Nov 22, 2018 · 6 comments
Assignees
Labels
🤔 Need Reproduce We cannot reproduce your problem

Comments

@Liswi
Copy link

Liswi commented Nov 22, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

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好像没有这个问题

@ant-design-bot
Copy link
Contributor

Hello @Liswi. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro. Issues labeled by Need Reproduce will be closed if no activities in 7 days.

你好 @Liswi, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击此处创建。7 天内未跟进的 issue 将会被自动关闭。

@afc163 afc163 added the 🤔 Need Reproduce We cannot reproduce your problem label Nov 22, 2018
@TristanDongMaster
Copy link

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????

@zombieJ
Copy link
Member

zombieJ commented Nov 22, 2018

@TristanDongMaster , could you help to provide an online reproduce?

@TristanDongMaster
Copy link

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....

@TristanDongMaster
Copy link

@zombieJ , @ant-design-bot

@exonuclease
Copy link

exonuclease commented Nov 22, 2018

@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.
react-component/tree-select#132

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Need Reproduce We cannot reproduce your problem
Projects
None yet
Development

No branches or pull requests

6 participants