Skip to content

关于treeSelect组件的bug #13245

Closed
Closed
@Liswi

Description

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

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions